Why, suffering is the sole origin of consciousness. Though I did lay it down at the beginning that consciousness is the greatest misfortune for man, yet I know man prizes it and would not give it up for any satisfaction. Consciousness, for instance, is infinitely superior to twice two makes four.
 Fyodor Dostoyevsky, Notes from Underground (1864). copy citation

Context

“In the "Palace of Crystal" it is unthinkable; suffering means doubt, negation, and what would be the good of a "palace of crystal" if there could be any doubt about it? And yet I think man will never renounce real suffering, that is, destruction and chaos. Why, suffering is the sole origin of consciousness. Though I did lay it down at the beginning that consciousness is the greatest misfortune for man, yet I know man prizes it and would not give it up for any satisfaction. Consciousness, for instance, is infinitely superior to twice two makes four. Once you have mathematical certainty there is nothing left to do or to understand. There will be nothing left but to bottle up your five senses and plunge into contemplation. While if you stick to consciousness, even though the same result is attained, you can at least flog yourself at times, and that will, at any rate, liven you up.” source