Shirk can be replaced with Better Deeds Before the Person Dies

25:68  And those who (do) not invoke with Allah god another, and (do) not [they] kill the soul which has forbidden Allah except by right and (do) not commit adultery. And whoever does that will meet a penalty.

25:69  Will be doubled for him the punishment (on the) Day (of) Resurrection, and he will abide forever therein humiliated

25:70  Except (he) who repents and believes and does deeds righteous, then (for) those will replace Allah their evil deeds (with) good ones. And is Allah Oft-Forgiving, Most Merciful.

25:71  And whoever repents and does righteous (deeds), then indeed, he turns to Allah (with) repentance.