H. G. Wells said this quote

Affliction comes to us, not to make us sad but sober; not to make us sorry but wise.