Abu Hurairah (May Allah be pleased with him) narrated: Messenger of Allah ﷺ said, "He who repents before the sun rises from the west, Allah will forgive him". Muslim.
The phrase “before the sun rises from the west” is symbolic in nature as it implies that repentance can be done at any time until death comes upon us; no matter how late it may seem, there is still hope for forgiveness if one turns back to God in sincere repentance.
This hadith also teaches us about patience and perseverance; even when we feel like all hope is lost or our situation seems impossible, we must never give up on ourselves or on seeking forgiveness from God because He loves those who turn back to Him in repentance more than anything else.