Abu Huraira reported: The Messenger of Allah, peace and blessings be upon him, said, “Whoever repents before the sun rises from the west, Allah will forgive him.”
Source: Ṣaḥīḥ Muslim 2703
Grade: Sahih (authentic) according to Muslim
عَنْ أَبِي هُرَيْرَةَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَنْ تَابَ قَبْلَ أَنْ تَطْلُعَ الشَّمْسُ مِنْ مَغْرِبِهَا تَابَ اللَّهُ عَلَيْهِ
2703 صحيح مسلم كتاب الذكر والدعاء والتوبة والاستغفار باب استحباب الاستغفار والاستكثار منه