Surah Al-Anfal, ayah 33

8:33

وَمَا كَانَ ٱللَّهُ لِيُعَذِّبَهُمۡ وَأَنتَ فِيهِمۡۚ وَمَا كَانَ ٱللَّهُ مُعَذِّبَهُمۡ وَهُمۡ يَسۡتَغۡفِرُونَ ٣٣

Wamā kānallāhu liyu'addhibahum wa anta fīhim wamā kānallāhu mu'addhibahum wahum yastaghfirūn

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.