Repentance

But repentance is not for those who persist in wrongdoing until death approaches, and they say, ‘Now I repent,’ nor for those who die in disbelief. On that Day, those who denied the truth and disobeyed the Messenger will wish the earth would swallow them. They will not be able to hide anything from Allah.

4:18The forgiveness is not for those who do ill-deeds until, when death attendeth upon one of them, he saith: Lo! I repent now; nor yet for those who die while they are disbelievers. For such We have prepared a painful doom.