Reminds me of:

For a typical healthy person being sick can even become an energetic stimulus for life, for living more. This, in fact, is how [my own] long period of sickness appears to me now…it was during the years of my lowest vitality that I ceased to be a pessimist; the instinct of self-restoration forbade me a philosophy of poverty and discouragement. Nietzche