"I dislike certain traits in many religious people and one trait is smugness.
I think it is dangerous for a person to go to shul and to think that he does God such a big favor that he will be forgiven for everything.
He is so self-satisfied and feels he is doing God such a favor by visiting His place from time to time."
From a talk by Rabbi Steinsaltz in New York City