Al-Baqara • EN-TAFSIR-IBN-ABBAS
﴿ فَجَعَلْنَٰهَا نَكَٰلًۭا لِّمَا بَيْنَ يَدَيْهَا وَمَا خَلْفَهَا وَمَوْعِظَةًۭ لِّلْمُتَّقِينَ ﴾
“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.”
(And We made it) turning them into apes (an example) we subjected them to a chastisement (to their own) for the sins they had committed before, (and) made them a lesson (to succeeding generations) in order that they do not follow their example (and admonition to the God-fearing) and a counsel and warning to those who fear Allah, i.e. Muhammad (pbuh) and his Companions.