The Holy Quran 7:165 — Surah Al-A'raf
Arabic text
فَلَمَّا نَسُوا۟ مَا ذُكِّرُوا۟ بِهِۦٓ أَنجَيْنَا ٱلَّذِينَ يَنْهَوْنَ عَنِ ٱلسُّوٓءِ وَأَخَذْنَا ٱلَّذِينَ ظَلَمُوا۟ بِعَذَابٍۭ بَـِٔيسٍۭ بِمَا كَانُوا۟ يَفْسُقُونَ
Translation
When they (the first group) forgot (ignored) the advice given to them (by the second group), We saved those who used to forbid evil (the second group) and We seized those who did wrong (the first group) with a terrible punishment because of their disobedience. (Because they disliked violating Allaah's command, the third group were also saved from punishment.)
Tafsir (excerpt) — Tafsir Usmani
The rescue of the admonishers and the punishment of the disobedient: that is, when these worthless people had forgotten all the admonitions entirely, as if they had never heard them, We saved the admonishers and seized the wrongdoers with a severe punishment. The generality of the words اَلَّذِيْنَ يَنْهَوْنَ عَنِ السُّوْٓءِ (“those who forbade evil”)
Preview. The full text opens with JavaScript enabled.