كَدَأْبِ ءَالِ فِرْعَوْنَ ۙ وَٱلَّذِينَ مِن قَبْلِهِمْ ۚ كَذَّبُوا۟ بِـَٔايَـٰتِ رَبِّهِمْ فَأَهْلَكْنَـٰهُم بِذُنُوبِهِمْ وَأَغْرَقْنَآ ءَالَ فِرْعَوْنَ ۚ وَكُلٌّۭ كَانُوا۟ ظَـٰلِمِينَ
“If only you could see when the angels take the souls of the disbelievers, beating their faces and backs, [saying,] "Taste the torment of burning! This is [the reward] for what your hands have done. And Allah is never unjust to [His] creation." Their fate is that of the people of Pharaoh and those before them — they all disbelieved in Allah's Signs, so Allah seized them for their sins. Indeed, Allah is All-Powerful, severe in Punishment. This is because Allah would never discontinue His favor to a people until they discontinue their faith. Surely, Allah is All-Hearing, All-Knowing. That was the case with Pharaoh's people and those before them — they all rejected the Signs of their Lord, so We destroyed them for their sins and drowned Pharaoh's people. They were all wrongdoers.”
Surah al-Anfal was revealed on the plains of Badr regarding the battle and its aftermath.