Question:
Is repentance accepted at the time of the death agony?
Answer:
Allah the Exalted accepts every repentance up until the death agony begins. When the time of death begins, the time for repentance comes to an end.
❀ Hafiz al-Iraqi (may Allah have mercy on him)
Reference: (806 AH)
said:
أجمع العلماء على قبول توبة العبد ما لم يغرغر.
The people of knowledge are unanimous that a servant’s repentance is accepted as long as the soul has not reached the throat.
Reference: (Tarh al-Tathrib: 264/7)