Meister Eckhart said this quote

Truly, it is in darkness that one finds the light, so when we are in sorrow, then this light is nearest of all to us.