逢凶化吉

Idiom

 * 1) to get through a dangerous crisis; to land on one's feet