How to prosper in a painful providence