The Messenger of Allah ﷺ said, "Whoever repents before the sun rises from the west, Allah will accept his repentance."
حدثنا إسماعيل حدثنا هشام بن حسان عن محمد بن سيرين
قال رسول الله ﷺ من تاب قبل أن تطلع الشمس من مغربها تاب الله عليه
This isnad is sahih, mentioned previously in 9104.