The Prophet (peace and blessings be upon him) said: "Whoever repents before the sun rises from the west, Allah accepts his repentance."