Page 80
wa-laysati t-tawbatu li-lladhīna yaʿmalūna s-sayyiʾāti ḥattā ʾidhā ḥaḍara ʾaḥadahumu l-mawtu qāla ʾinnī tubtu l-ʾāna wa-lā lladhīna yamūtūna wa-hum kuffārun ʾulāʾika ʾaʿtadnā lahum ʿadhāban ʾalīman
But [acceptance of] repentance is not for those who go on committing misdeeds: when death approaches any of them, he says, ‘I repent now.’ Nor is it for those who die while they are faithless. For such We have prepared a painful punishment.
— Ali Quli Qarai
Surah An-Nisa',Verse 18
18. "And repentance is not for those who go on doing evil deeds until death comes to one of them, he says: 'Verily now I repent', nor for those who die while they are disbelievers. Those are they for whom We have prepared a painful torment."
Those whose repentance is not accepted is referred to in this verse. It says:
The second group whose repentance is also not accepted are those who pass away while they are infidels. The verse says about them:
In fact, the verse indicates that those who have repented from their sins and they had been safe and sound and had a good faith, but at the time of death they were not faithful, their former repentance is futile, too. At the end of the verse, it says about both groups: