This quote is from the Czech dissident (and former president) Václav Havel’s famous 1979 essay The Power of the Powerless:
Ideology is a specious way of relating to the world. It offers human beings the illusion of an identity, of dignity, and of morality, while making it easier for them to part with them.