Sure Al-Ahzaab

33:24

لِّيَجْزِىَ ٱللَّهُ ٱلصَّٰدِقِينَ بِصِدْقِهِمْ وَيُعَذِّبَ ٱلْمُنَٰفِقِينَ إِن شَآءَ أَوْ يَتُوبَ عَلَيْهِمْ ۚ إِنَّ ٱللَّهَ كَانَ غَفُورًۭا رَّحِيمًۭا

damit Allah den Wahrhaftigen ihre Wahrhaftigkeit vergelte und die Heuchler strafe, wenn Er will, oder sich ihnen Reue-Annehmend zuwende. Gewiß, Allah ist Allvergebend und Barmherzig.

Tafsir 33:24

So that Allah rewards the truthful who fulfilled what they promised Allah, by virtue of their truth and fulfilling their promises, and punish the hypocrites who broke their promises if He wishes, by making them die before they repent from their disbelief, or by accepting their repentance by enabling them to repent. And Allah is Forgiving to one who repents for his sins and Merciful to him.