Self-Righteousness
¥See Paul's remarks in Romans 2:17-24 regarding Jewish self-righteousness:
17 (NIV) Now you, if you call yourself a Jew; if you rely on the law and brag about your relationship to God; 18 if you know his will and approve of what is superior because you are instructed by the law; 19 if you are convinced that you are a guide for the blind, a light for those who are in the dark, 20 an instructor of the foolish, a teacher of infants, because you have in the law the embodiment of knowledge and truth 21 you, then, who teach others, do you not teach yourself? You who preach against stealing, do you steal? 22 You who say that people should not commit adultery, do you commit adultery? You who abhor idols, do you rob temples? 23 You who brag about the law, do you dishonor God by breaking the law? 24 As it is written: "God's name is blasphemed among the Gentiles because of you."
¥Self-righteousness is by no means confined to ancient times or to non-Christian religions!