Abu Musa Ashari reported,

The Prophet ﷺ said, "Allah عز وجل extends His hand by night so that the one who sinned by day may repent, and He extends His hand by day so that the one who sinned by night may repent, until the sun rises from its place of setting."

Azami 11453

Sahih

عن أبي موسى الأشعري

عن النبي ﷺ قال: إن الله عز وجل يبسط يده بالليل ليتوب مسيء النهار، ويبسط يده بالنهار ليتوب مسيء الليل، حتى تطلع الشمس من مغربها.

الأعظمي 11453صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Repentance and seeking forgiveness
Chapter
Comprehensive and general supplications
Section
Allah accepts the repentance of a servant as long as he has not reached the death rattle or the sun rises from the west
Numbering
Jami al-Kamil 11453 (2nd edition)
Azami 11453