We sometimes find ourselves changing our minds without any resistance or heavy emotion, but if we are told that we are wrong we resent the imputation and harden our hearts. We are incredibly heedless in the formation of our beliefs, but find ourselves filled with an illicit passion for them when anyone proposes to rob us of their companionship. It is obviously not the ideas themselves that are dear to us, but our self-esteem which is threatened.
James Harvey Robinson (1863-1936) American historian and educator
The Mind in the Making, ch. 4 “Rationalizing” (1921)
(Source)