2:66

فَجَعَلْنَاهَا نَكَالًا لِّمَا بَيْنَ يَدَيْهَا وَمَا خَلْفَهَا وَمَوْعِظَةً لِّلْمُتَّقِينَ

Transliteration:

FajaAAalnaha nakalan lima bayna yadayha wama khalfaha wamawAAithatan lilmuttaqeena

Word by Word:

So We made it a deterrent punishment for those (in) front (of) them and those after them and an admonition for those who fear (Allah).

Translations:

and set them up as a warning example for their time and for all times to come, as well as an admonition to all who are conscious of God.

So We made it an example to their own time and to their posterity, and a lesson to those who fear God.

And We made it an example to their own and to succeeding generations, and an admonition to the Allah-fearing.

So We made them an example to those who witnessed it and those who came after it and an admonition to those who guard against evil.

And We made it a deterrent punishment for those who were present and those who succeeded [them] and a lesson for those who fear Allah .