Surah Az-Zukhruf

43:56

فَجَعَلْنَٰهُمْ سَلَفًۭا وَمَثَلًۭا لِّلْءَاخِرِينَ

And We made them a precedent and an example for the later peoples.

Tafsir 43:56

So I made Pharaoh and his people an example for those who did actions like theirs, that they would perish just like they did. I also made them a lesson for those who take heed; so that they do not do the same actions as theirs and are then afflicted with whatever came upon them.