وَإِذْ قَالَتْ أُمَّةٌ مِّنْهُمْ لِمَ تَعِظُونَ قَوْمًا اللَّهُ مُهْلِكُهُمْ أَوْ مُعَذِّبُهُمْ عَذَابًا شَدِيدًا قَالُوا مَعْذِرَةً إِلَى رَبِّكُمْ وَلَعَلَّهُمْ يَتَّقُونَ
When a group of them said, ‘Why do you advise a people whom Allah will destroy, or punish with a severe punishment?’ They said, ‘As an excuse before your Lord, and [with the hope] that they may be Godwary.’
Agha Ali Puya Commentary
Commentary on Quran 7:164
[Pooya/Ali Commentary 7:164] This verse refers to amr bil maruf and nahyal anil munkar. See commentary of Ali Imran : 101 to 115 (Aqa Mahdi Puya's note on page 245).