TABARANI 13609:
from Ibn ʿ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."
الطبراني ١٣٦٠٩:
عن ابن عمر —
سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ «مَا مِنْ عَبْدٍ مُؤْمِنٍ يَتُوبُ إِلَى اللهِ قَبْلَ الْمَوْتِ بِشَهْرٍ إِلَّا قَبِلَ اللهُ مِنْهُ وَأَدْنَى مِنْ ذَلِكَ وَقَبْلَ مَوْتِهِ بِيَوْمٍ أَوْ سَاعَةٍ يَعْلَمُ اللهُ مِنْهُ التَّوْبَةَ وَالْإِخْلَاصَ إِلَّا قَبِلَ اللهُ مِنْهُ»
hadithunlocked.com