Victor Hugo said this quote

Though one believes in nothing, there are moments in life when one accepts the religion of the temple nearest at hand.