Surah Ghafir 40:45
فَوَقَىٰهُ ٱللَّهُ سَيِّـَٔاتِ مَا مَكَرُوا۟ ۖ وَحَاقَ بِـَٔالِ فِرْعَوْنَ سُوٓءُ ٱلْعَذَابِ
So Allāh protected him from the evils they plotted, and the people of Pharaoh were enveloped by the worst of punishment -
Translation: Saheeh International
Tafsir
So God shielded him from the evils of what they had plotted against him in the way of killing him and there besieged befell the folk of Pharaoh his people as well as him a dreadful chastisement drowning
Excerpt from Tafsir al-Jalalayn, commentary on 40:45, via Quran.com. The reader has the full commentary and 9 more tafsirs.