Sure Az-Zumar

39:35

لِيُكَفِّرَ ٱللَّهُ عَنْهُمْ أَسْوَأَ ٱلَّذِى عَمِلُوا۟ وَيَجْزِيَهُمْ أَجْرَهُم بِأَحْسَنِ ٱلَّذِى كَانُوا۟ يَعْمَلُونَ

auf daß Allah ihnen das Schlechteste von dem, was sie getan haben, tilge und ihnen ihren Lohn vergelte für das Beste von dem, was sie taten.

Tafsir 39:35

So that Allah erases from them the worst sins that they used to do in the world, as they had repented from them and had turned towards their Lord, and rewards them according to the best deeds that they used to do.