Surah An-Nahl, ayah 28

16:28

ٱلَّذِينَ تَتَوَفَّىٰهُمُ ٱلۡمَلَٰٓئِكَةُ ظَالِمِيٓ أَنفُسِهِمۡۖ فَأَلۡقَوُاْ ٱلسَّلَمَ مَا كُنَّا نَعۡمَلُ مِن سُوٓءِۭۚ بَلَىٰٓۚ إِنَّ ٱللَّهَ عَلِيمُۢ بِمَا كُنتُمۡ تَعۡمَلُونَ ٢٨

Alladhīna tatawaffāhumul-malā'ikatu zālimī anfusihim fa alqawus-salama mā kunnā na'malu min sū'i balā innallāha 'alīmu bimā kuntum ta'malūn

The ones whom the angels take in death [while] wronging themselves,697 and [who] then offer submission, [saying], "We were not doing any evil." But, yes! Indeed, Allāh is Knowing of what you used to do.

Footnotes

697 i.e., having made punishment due to them for their numerous sins and crimes.