And He also told this parable to certain ones who trusted in themselves that they were righteous, and viewed other with contempt: “Two men went up into the temple to pray, one a Pharisee, and the other a tax-gatherer. The Pharisee stood and was praying thus to himself, ‘God, I thank You that I am not like other people: swindlers, unjust, adulterers, or even like this tax-gatherer. I fast twice a week; I pay tithes of all that I get.’ But the tax-gatherer, standing some distance away was even unwilling to lift up his eyes to heaven, but was beating his breast, saying ‘God, be merciful to me, the sinner!’
I tell you, this man went down to his house justified rather than the other; for everyone who exalts himself shall be humbled, but he who humbles himself shall be exalted.”
Then he (Abraham) believed in the Lord; and He reckoned it to him as righteousness.
Now to the one who works, his wage is not reckoned as a favor, but as what is due. But to the one who does not work, but believes in Him who justifies the ungodly, his faith is reckoned as righteousness.
II Corinthians 5:21
He made Him who knew no sin to be sin on our behalf, that we might become the righteousness of God in Him.
. . .although I myself might have confidence even in the flesh. If anyone else has a mind to put confidence in the flesh, I far more: circumcised the eighth day, of the nation of Israel, of the tribe of Benjamin, A Hebrew of Hebrews; as to the Law, a Pharisee; as to seal, persecutor of the church; as to the righteousness which is in the Law, found blameless. But whatever things were gain to me, those things I have counted as loss for the sake of Christ. More than that, I count all things to be loss in view of the surpassing value of knowing Christ Jesus my Lord, for whom I have suffered the loss of all things, and count them but rubbish in order that I may gain Christ, and may be found in Him, not having a righteousness of my own derived from the Law, but that which is through faith in Christ, the righteousness which comes from God on the basis of faith.
I do not nullify the grace of God; for if righteousness were through the Law, then Christ died to no purpose.