Major sins are forgiven by repentance
Abu Hurayrah (radi Allahu anhu) reported that the Messenger of Allah (sal Allahu alaihi wa sallam) said, “Allah, the Exalted, smiles at two men, one of them killed the other and both will enter Jannah. The first is killed by the other while he is fighting in the Cause of Allah, and thereafter Allah will turn in mercy to the second and guide him to accept Islam and then he dies as a Shaheed (martyr) fighting in the Cause of Allah.”
[Al-Bukhari and Muslim]
We learn two great lessons from this Hadith:
1. Even the greatest sins, including those which one has committed before embracing Islam, are forgiven by repentance.
2. Smiling is also one of the Attributes of Allah, although we are unaware of the nature of it.
And Allah Knows Best!