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."
English reference: Vol. 5, Book 37, Hadith 4253
Arabic reference: Book 37, Hadith 4394
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.