correctly quoted as "What is the answer to life, the universe, and everything" in the Hitchikers Guide to the Galaxy. it was proposed by philosophers to the great computer "Deep Thought". long story short the answer is 42.

"Oh deep thought, what is the answer to life, the universe, and everything?"
"42"