Romans 2:13 is 100% true
13 For it is not those who hear the law who are righteous in God’s sight, but it is those who obey the law who will be declared righteous.
the issue is that no one has!! NONE, ZERO, Zilch
10 There is no one righteous, not even one;
20 Therefore no one will be declared righteous in God’s sight by the works of the law; rather, through the law we become conscious of our sin.
23 for all have sinned and fall short of the glory of God,
28 For we maintain that a person is justified by faith apart from the works of the law
30 since there is only one God, who will justify the circumcised by faith and the uncircumcised through that same faith
That's an OT reference--under the Mosaic Law:
Psalm 53:1-4---King James Version
1 The fool hath said in his heart, There is no God. Corrupt are they, and have done abominable iniquity: there is none that doeth good.
2 God looked down from heaven upon the children of men, to see if there were any that did understand, that did seek God.
3 Every one of them is gone back: they are altogether become filthy; there is none that doeth good, no, not one.
4 Have the workers of iniquity no knowledge? who eat up my people as they eat bread: they have not called upon God.
Here is the NT declaration:
1 John 3:7--King James Version
7 Little children, let no man deceive you: he that doeth righteousness is righteous, even as he is righteous.
That's the "works of the law"(Mosaic Law) verses the gospel of Jesus Christ--as Paul maintains above.