9To some who were confident of their own righteousness and looked down on everybody else, Jesus told this parable: 10"Two men went up to the temple to pray, one a Pharisee and the other a tax collector. 11The Pharisee stood up and prayed about himself: 'God, I thank you that I am not like other men-robbers, evildoers, adulterers-or even like this tax collector. 12I fast twice a week and give a tenth of all I get.' 13"But the tax collector stood at a distance. He would not even look up to heaven, but beat his breast and said, 'God, have mercy on me, a sinner.' 14"I tell you that this man, rather than the other, went home justified before God. For everyone who exalts himself will be humbled, and he who humbles himself will be exalted."
help when you're feeling self-righteous
3At one time we too were foolish, disobedient, deceived and enslaved by all kinds of passions and pleasures. We lived in malice and envy, being hated and hating one another. 4But when the kindness and love of God our Saviour appeared, 5he saved us, not because of righteous things we had done, but because of his mercy. He saved us through the washing of rebirth and renewal by the Holy Spirit, 6whom he poured out on us generously through Jesus Christ our Saviour, 7so that, having been justified by his grace, we might become heirs having the hope of eternal life.
9What shall we conclude then? Are we any better? Not at all! We have already made the charge that Jews and Gentiles alike are all under sin. 10As it is written: "There is no one righteous, not even one; 11there is no one who understands, no one who seeks God. 12All have turned away, they have together become worthless; there is no one who does good, not even one." 21But now a righteousness from God, apart from law, has been made known, to which the Law and the Prophets testify. 22This righteousness from God comes through faith in Jesus Christ to all who believe. There is no difference, 23for all have sinned and fall short of the glory of God, 24and are justified freely by his grace through the redemption that came by Christ Jesus.
8For it is by grace you have been saved, through faith-and this not from yourselves, it is the gift of God- 9not by works, so that no one can boast.