It wasnarrated from 'Abdullah bin 'Amr that the Prophet (ﷺ) said:
"Allah accepts the repentance of His slave so long as the deathrattlehas not yet reached his throat." (DE)
English reference (DE): Vol. 5, Book 37, Hadith 4253 (DE)
Arabic reference (DE): Book 37, Hadith 4394 (DE)