Repenting before the sun rises from the west
Abu Hurayrah (radi Allahu anhu) narrated that the Messenger of Allah (sal Allahu alaihi wa sallam) said, “He who repents before the sun rises from the west, Allah will forgive him.”
Repentance (Tawbah) means returning to Allah from sins. When a person commits a sin, he goes away from Allah. When he repents, he returns to Allah and desires for being pardoned by Him, and getting near Him. This returning towards Him is Tawbah. When it is said that ‘Allah turns towards him’, it means that Allah accepts his repentance.
And Allah Knows Best!