Allah is the Forgiving
As long as the person repents to his Lord and seeks his forgiveness, he will forgive him and exchange his sins with good deeds.
Allah said ( interpretation of the meaning ) : { Say, "O My servants who have transgressed against themselves [by sinning], do not despair of the mercy of Allah . Indeed, Allah forgives all sins. Indeed, it is He who is the Forgiving, the Merciful." } Quran ( 39 : 53 )