Erich Fromm said this quote
“ What the psychological analysis of doctrines can show is the subjective motivations which make a person aware of certain problems and make him seek answers in certain directions. Any kind of though, true or false, is motivated by the subjective needs and interests of the person who is thinking. It happens that some interests are furthered by finding the truth, others by destroying it. ”