Tafsir of Surah An-Nisaa 4:18
﴿وَلَيْسَتِ التَّوْبَةُ لِلَّذِينَ يَعْمَلُونَ السَّيِّئَاتِ حَتَّىٰ إِذَا حَضَرَ أَحَدَهُمُ الْمَوْتُ قَالَ إِنِّي تُبْتُ الْآنَ وَلَا الَّذِينَ يَمُوتُونَ وَهُمْ كُفَّارٌ أُولَٰئِكَ أَعْتَدْنَا لَهُمْ عَذَابًا أَلِيمًا﴾
Translation of the meaning
But repentance is not [accepted] of those who [continue to] do evil deeds up until, when death comes to one of them, he says, "Indeed, I have repented now," or of those who die while they are disbelievers. For them We have prepared a painful punishment.
English Translation - Noor International Center — v1.1.2 · QuranEnc.comThe words of the two imams are given in their original Arabic, verbatim, with references.
Shaykh al-Islam Ibn Taymiyyah
فهؤلاء لا تقبل توبتهم وهي التوبة عند حضور الموت؛ لأن من تاب قبل حضور الموت فقد تاب من قريب ورجع عن كفره فلم يزدد بل نقص؛ بخلاف المصر إلى حين المعاينة فما بقي له زمان يقع لنقص كفره فضلا عن هدمه.«مجموع الفتاوى» 16/29