Surah Al-Anfal 8:33
وَمَا كَانَ ٱللَّهُ لِيُعَذِّبَهُمْ وَأَنتَ فِيهِمْ ۚ وَمَا كَانَ ٱللَّهُ مُعَذِّبَهُمْ وَهُمْ يَسْتَغْفِرُونَ
But Allāh would not punish them while you, [O Muḥammad], are among them, and Allāh would not punish them while they seek forgiveness.
Translation: Saheeh International
Tafsir
God then says But God was not about to chastise them for what they requested while you were among them for when chastisement is sent down it is all-encompassing and no community was ever chastised except after its prophet and the believers had departed from it; …
Excerpt from Tafsir al-Jalalayn, commentary on 8:33, via Quran.com. The reader has the full commentary and 9 more tafsirs.