Carl Sagan or Martin Gardner ?
"Shortly before he died, Carl Sagan wrote to say he had reread my Whys of a Philosophical Scrivener and was it fair to say that I believed in God solely because it made me “feel good.” I replied that this was exactly right, though the emotion was deeper than the way one feels good after three drinks. It is a way of escaping from a deep-seated despair. William James’s essay “The Will to Believe” is the classic defense of the right to make such an emotional “leap of faith.” My theism is independent of any religious movement, and in the tradition that starts with Plato and includes Kant, and a raft of later philosophers, down to Charles Peirce, William James, and Miguel de Unamuno. I defend it ad nauseam in my Whys."