self-righteousness.

Indeed, people who believe their righteousness flows from within (self-righteous) are practicing a form of ignorance. Wisdom does not come from within, nor does righteousness, but from observation about the world, and studying the concepts of right and wrong with an open mind.