Sure An-Nisaa

4:18

وَلَيْسَتِ ٱلتَّوْبَةُ لِلَّذِينَ يَعْمَلُونَ ٱلسَّيِّـَٔاتِ حَتَّىٰٓ إِذَا حَضَرَ أَحَدَهُمُ ٱلْمَوْتُ قَالَ إِنِّى تُبْتُ ٱلْـَٰٔنَ وَلَا ٱلَّذِينَ يَمُوتُونَ وَهُمْ كُفَّارٌ ۚ أُو۟لَٰٓئِكَ أَعْتَدْنَا لَهُمْ عَذَابًا أَلِيمًۭا

Nicht aber ist die Annahme der Reue für diejenigen, die böse Taten begehen, bis daß, wenn sich bei einem von ihnen der Tod einstellt, er sagt: "Jetzt bereue ich", und auch nicht für diejenigen, die als Ungläubige sterben. Für jene haben Wir schmerzhafte Strafe bereitet.

Tafsir 4:18

Allah does not turn in mercy and forgiveness to those who continue in their disobedience, overstepping the limits and insisting on overstepping them, and not turning away from doing this until they are dying, then saying that they regret what they did and asking for Allah’s forgiveness. Also, Allah does not turn in mercy and forgiveness to those who die in disbelief – He has prepared a painful punishment for them.