Riyad as-Salihin #18 · The Book of Miscellany

Riyad as-SalihinAbdullah bin 'Umar bin Al-Khattab
Riyad as-Salihin · Book 1 · The Book of Miscellany
Riyad as-Salihin · كتاب 1 · كتاب المقدمات
The Prophet (صلى الله عليه وسلم) said, "Allah accepts a slave's repentance as long as the latter is not on his death bed (that is, before the soul of the dying person reaches the throat)". [At-Tirmidhi, who categorised it as Hadith Hasan] .
وعن أبي عبد الرحمن عبد الله بن عمر بن الخطاب رضي الله عنهما عن النبي صلى الله عليه وسلم قال:
" إن الله عز وجل يقبل توبة العبد ما لم يغرغر" ((رواه الترمذي وقال: حديث حسن)).
Reference : Riyad as-Salihin 18In-book reference : Book 1, Hadith 18