化險為夷

化险为夷
huàxiǎnwéi
to turn peril into safety (idiom); to avert disaster

CEDICT

Entry Composition