2:66
فَجَعَلْنَـٰهَا نَكَـٰلًا لِّمَا بَيْنَ يَدَيْهَا وَمَا خَلْفَهَا وَمَوْعِظَةً لِّلْمُتَّقِينَ
fajaʿalnāhā nakālan limā bayna yadayhā wamā khalfahā wamawʿiẓatan lil'muttaqīna
We made this an example to those people who were there at the time and to those who came after them, and a lesson to all who are mindful of God.
So We made this punishment an example to their own and to succeeding generations and a lesson to those who are Al-Muttaqûn (the pious - See V.2:2).