Repentance is accepted day and night up until the Last Hour
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.
عَنِ النَّبِيِّ ﷺ قَالَ: «إِنَّ اللَّهَ ﷻ يَبْسُطُ يَدَهُ بِاللَّيْلِ لِيَتُوبَ مُسِيءُ النَّهَارِ، وَيَبْسُطُ يَدَهُ بِالنَّهَارِ لِيَتُوبَ مُسِيءُ اللَّيْلِ, حَتَّى تَطْلُعَ الشَّمْسُ مِنْ مَغْرِبِهَا۔»