Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Whoever repents before the sun rises from the west, Allah will accept his repentance."

Azami 11452

Sahih

عن أبي هريرة قال

قال رسول الله ﷺ: من تاب قبل أن تطلع الشمس من مغربها تاب الله عليه.

الأعظمي 11452صحيح
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 11452 (2nd edition)
Azami 11452