Ibn ‘Umar reported God’s messenger as saying, “God accepts a servant’s repentance till he gives up his spirit in death.”* *The Arabic is ma lam yugharghir, which might, be translated literally "as long as he has not died with the death rattle in his throat." Tirmidhi and Ibn Majah transmitted it.
Hadith Referenceمشكوة المصابيح / كتاب الدعوات / 2343
Hadith Gradingالألبانی:لم تتمّ دراسته | زبیر علی زئی:حسن
Hadith Takhrij´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «حسن، رواه الترمذي (3537 وقال: حسن غريب) و ابن ماجه (4253) [و صححه ابن حبان (2449) والحاکم (257/4) ووافقه الذهبي]»