Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:19479a
Request/Fix translation

  

السيوطي:١٩٤٧٩a

"مَا مِنْ عَبْدٍ مُؤمِن يَتُوبُ إِلى اللهِ ﷻ قَبْلَ المُوْت بِشهْر إلَّا قَبلَ اللهُ مِنه وَأَدْنَى مِنْ ذَلِكَ وقَبْلَ مَوْته بِيَوْمٍ أَوْ سَاعة يَعْلَمُ اللهُ مِنْهُ التَّوْبةَ وَالإِخْلاصَ إلَّا قبِلَ اللهُ منْهُ".  

[طب] الطبرانى في الكبير عن ابن عمر

See similar narrations below:

Collected by Ṭabarānī
tabarani:13609Ibn ʿUmar

[Machine] I heard the Messenger of Allah ﷺ say, "There is no believing servant who repents to Allah a month before death except that Allah accepts it from him, even more than that. And before his death, whether it be a day or an hour, Allah knows from him repentance and sincerity, except that Allah accepts it from him."  

الطبراني:١٣٦٠٩وَبِإِسْنَادِهِ قَالَ سَمِعْتُ ابْنَ عُمَرَ يَقُولُ

سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ «مَا مِنْ عَبْدٍ مُؤْمِنٍ يَتُوبُ إِلَى اللهِ قَبْلَ الْمَوْتِ بِشَهْرٍ إِلَّا قَبِلَ اللهُ مِنْهُ وَأَدْنَى مِنْ ذَلِكَ وَقَبْلَ مَوْتِهِ بِيَوْمٍ أَوْ سَاعَةٍ يَعْلَمُ اللهُ مِنْهُ التَّوْبَةَ وَالْإِخْلَاصَ إِلَّا قَبِلَ اللهُ مِنْهُ»