Al-A'raaf • EN-TAFSIR-MAARIF-UL-QURAN
﴿ وَإِذْ قَالَتْ أُمَّةٌۭ مِّنْهُمْ لِمَ تَعِظُونَ قَوْمًا ۙ ٱللَّهُ مُهْلِكُهُمْ أَوْ مُعَذِّبُهُمْ عَذَابًۭا شَدِيدًۭا ۖ قَالُوا۟ مَعْذِرَةً إِلَىٰ رَبِّكُمْ وَلَعَلَّهُمْ يَتَّقُونَ ﴾
“And whenever some people among them asked [those who tried to restrain the Sabbath-breakers], "Why do you preach to people whom God is about to destroy or [at least] to chastise with suffering severe?" -the pious ones would answer, "In order to be free from blame before your Sustainer, and that these [transgressors, too,] might become conscious of Him."”
The detailed discussion of the events contained in the above verses have been produced in Surah Al-Baqarah (under verses 58-60). Those interested may refer to those verses for details. The Holy Prophet ﷺ has been asked to warn the Israelites present in his time by reminding them the events related in these verses. The events referred to in these verses are clear and require no explanation.