Surah Al-Maaida

5:34

إِلَّا ٱلَّذِينَ تَابُوا۟ مِن قَبْلِ أَن تَقْدِرُوا۟ عَلَيْهِمْ ۖ فَٱعْلَمُوٓا۟ أَنَّ ٱللَّهَ غَفُورٌۭ رَّحِيمٌۭ

Except for those who return [repenting] before you apprehend them. And know that Allah is Forgiving and Merciful.

Tafsir 5:34

Except for those warmongers who repent before you, people of authority, get hold of them. Know, then, that Allah is Forgiving and Merciful towards them after they repent. Due to His mercy, He overlooks the punishment that is due to them.