Ghafir - 40:45

فَوَقَاهُ اللَّهُ سَيِّئَاتِ مَا مَكَرُوا وَحَاقَ بِآلِ فِرْعَوْنَ سُوءُ الْعَذَابِ
[40:45]
So Allah protected him from the evil (consequences) of what they planned, and the most evil punishment overtook Firon's people:
Then Allah saved him from (every) ill that they plotted (against him), but the burnt of the Penalty encompassed on all sides the People of Pharaoh.
So Allah warded off from him the evils which they plotted, while a dreadful doom encompassed Pharaoh's folk,