The Bible reminds us that no one is righteous, except God.
As it is written: “There is none righteous, no, not one . . .” (Rom 3:10)
. . . for all have sinned and fall short of the glory of God . . . (Rom 3:23)
“The heart is deceitful above all things, and desperately wicked; who can know it?” (Jer 17:9)
“What is man, that he could be pure? And he who is born of a woman, that he could be righteous?” (Job 15:14)
If we say that we have no sin, we deceive ourselves, and the truth is not in us. 9 If we confess our sins, He is faithful and just to forgive us our sins and to cleanse us from all unrighteousness. 10 If we say that we have not sinned, we make Him a liar, and His word is not in us. (1 Joh 1:8-10, emphasis added)
We have abundant evidence, not only in the Scriptures but through the evidence of our own lives, that human beings are not intrinsically righteous. But as 1 John 1:9 (above) says, “If we confess our sins, He is faithful and just to forgive us our sins and to cleanse us from all unrighteousness.” Our solution to having sinned is to confess our sins to God and to accept and receive His cleansing and His forgiveness.
In those days Judah will be saved, And Jerusalem will dwell safely. And this is the name by which she will be called: THE LORD OUR RIGHTEOUSNESS. (Jer 33:16)
But of Him you are in Christ Jesus, who became for us wisdom from God—and righteousness and sanctification and redemption— (1 Cor 1:30)
For those of us who have accepted Jesus as our Savior and Lord, He has become for us wisdom from God. He is also our righteousness, sanctification, and redemption. After we accepted Jesus as our Savior, the Word reminds us that we were sealed with the Holy Spirit! (Eph 1:13) Glory to God most High!