Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) narrates this statement of the Prophet (peace and blessings be upon him): "Indeed, Allah Almighty accepts the servant's repentance as long as the throes of death have not overtaken him."
Hadith Referenceصحیح ابن حبان / كتاب الرقائق / 628
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيحسن لغيره - «المشكاة» (2343).فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده حسن من أجل ابن ثوبان، وهو عبد الرحمن بن ثابت بن ثوبان العنسي، وباقي رجاله ثقات.