Hadith on Tawbah: Repentance accepted until deathbed/ last breath
Ibn Umar reported: The Prophet, peace and blessings be upon him, said, “Verily, Allah accepts the repentance of his servants, as long as they are not on their death bed.” Source: Sunan al-Tirmidhī 3537
Grade: Hasan (fair) according to Al-Tirmidhi عَنْ ابْنِ عُمَرَعَنْ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ إِنَّ اللَّهَ يَقْبَلُ تَوْبَ
(eg – just Prior to the Angel takingthe Breath/ removing the Soul with the Last Breath; )