vahingosta viisaaksi tullaan

Proverb

 * 1) one should learn from accidents (not necessarily just one's own)