Whoever repents before the sun rises from the west, Allah will accept their repentance.
حدثنا يزيد أخبرنا هشام عن محمد
من تاب قبل أن تطلع الشمس من مغربها تاب الله عليه
Its isnad is sahih. It has already appeared at 7697 and 10369.