Repentance is accepted day and night up until the Last Hour
MUSLIM 2759a:
from Abū Mūsá —
from the Messenger of Allah ﷺ who said, "Allah ﷻ stretches out His Hand during the night to accept the repentance of the sinners of the day, and stretches out His Hand during the day to accept the repentance of the sinners of the night. ˹This will continue˺ until the sun rises from the west.
مسلم ٢٧٥٩a:
عن ابو موسى —
عَنِ النَّبِيِّ ﷺ قَالَ: «إِنَّ اللَّهَ ﷻ يَبْسُطُ يَدَهُ بِاللَّيْلِ لِيَتُوبَ مُسِيءُ النَّهَارِ، وَيَبْسُطُ يَدَهُ بِالنَّهَارِ لِيَتُوبَ مُسِيءُ اللَّيْلِ, حَتَّى تَطْلُعَ الشَّمْسُ مِنْ مَغْرِبِهَا۔»