Allah, Blessed and Exalted, accepts the slave's repentance as long as his death rattle has not yet reached his throat. [Ibn Maajah]
«إن الله -عز وجل- يقبل تَوْبَةَ العَبْدِ ما لم يُغَرْغِرْ». (ابن ماجه)