It reminds me a bit of “a man with a ‘why’ can endure any ‘how'”, by Nietzsche, but I can see how that quote might be interpreted to be the opposite of this one, and still they seem to suggest the same feeling.

From The Brothers Karamazov (http://www.ccel.org/d/dostoevsky/karamozov/htm/book05/chapter03.html):
“I understand too well, Ivan. One longs to love with one’s inside,
with one’s stomach. You said that so well and I am awfully glad that
you have such a longing for life,” cried Alyosha. “I think everyone
should love life above everything in the world.”
“Love life more than the meaning of it?”
“Certainly, love it, regardless of logic as you say, it must be
regardless of logic, and it’s only then one will understand the
meaning of it. I have thought so a long time. Half your work is
done, Ivan, you love life, now you’ve only to try to do the second
half and you are saved.”