Sura Al-Ahzaab

33:24

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

Gud [låter människorna utstå dessa prövningar] för att belöna de sanna för deras trohet mot sina löften och, allt efter Sin vilja, straffa hycklarna eller godta deras ånger; Gud är ständigt förlåtande, barmhärtig.

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.