Surah An-Naazi'aat

79:26

إِنَّ فِى ذَٰلِكَ لَعِبْرَةًۭ لِّمَن يَخْشَىٰٓ

Indeed in that is a warning for whoever would fear [Allah].

Tafsir 79:26

Indeed, in My punishing of Pharaoh in the world and the afterlife, there is admonition for the one who fears Allah, because it is he who benefits from the admonitions.