Ghafir • EN-TAFSIR-IBN-ABBAS
﴿ فَوَقَىٰهُ ٱللَّهُ سَيِّـَٔاتِ مَا مَكَرُوا۟ ۖ وَحَاقَ بِـَٔالِ فِرْعَوْنَ سُوٓءُ ٱلْعَذَابِ ﴾
“And God preserved him from the evil of their scheming, whereas suffering vile was to encompass Pharaoh’s folk:”
(So Allah warded off from him the evils which they plotted) Allah drove them away from him when they wanted to kill him, (while a dreadful doom) a severe punishment (encompassed Pharaoh's folk) visited Pharaoh and his folk, i.e. they drowned.