[Machine] The Messenger of Allah ﷺ said, "Whoever repents before his death, it is accepted from him." He continued, saying, "Repentance is accepted even if it is a year before death," and he said, "even if it is a month before death," and he said, "even if it is a Friday before death," and he said, "even if it is a day before death," and he said, "even if it is an hour before death," and he said, "even if it is a moment before death." So I said, "Glory be to Allah! Did Allah Almighty not say, 'And repentance is not accepted from those who commit evil deeds until, when death comes to one of them, he says, 'Indeed, I have repented now'" (Quran 4:18)?' Abdullah said, 'I am only informing you of what I heard from the Messenger of Allah ﷺ.' Al-Dhahabi remained silent regarding summarizing this.
قَالَ رَسُولُ اللَّهِ ﷺ «مَنْ تَابَ قَبْلَ مَوْتِهِ بِعَامٍ تِيبَ عَلَيْهِ» حَتَّى قَالَ «بِشَهْرٍ» حَتَّى قَالَ «بِجُمُعَةٍ» حَتَّى قَالَ «بِيَوْمٍ» حَتَّى قَالَ «بِسَاعَةٍ» حَتَّى قَالَ «بِفُوَاقٍ» فَقُلْتُ سُبْحَانَ اللَّهِ أَوَلَمْ يَقُلِ اللَّهُ ﷻ {وَلَيْسَتِ التَّوْبَةُ لِلَّذِينَ يَعْمَلُونَ السَّيِّئَاتِ حَتَّى إِذَا حَضَرَ أَحَدَهُمُ الْمَوْتُ قَالَ إِنِّي تُبْتُ الْآنَ} [النساء 18] ؟ فَقَالَ عَبْدُ اللَّهِ إِنَّمَا أُحَدِّثُكَ بِمَا سَمِعْتُ مِنْ رَسُولِ اللَّهِ ﷺسكت عنه الذهبي في التلخيص