Mikhail Bakunin said this quote

People go to church for the same reasons they go to a tavern: to stupefy themselves, to forget their misery, to imagine themselves, for a few minutes anyway, free and happy.-- Circular Letter to My Friends in Italy