An-Naml - 27:11

إِلَّا مَن ظَلَمَ ثُمَّ بَدَّلَ حُسْنًا بَعْدَ سُوءٍ فَإِنِّي غَفُورٌ رَّحِيمٌ
[27:11]
Neither he who has been unjust, then he does good instead after evil, for surely I am the Forgiving, the Merciful:
"But if any have done wrong and have thereafter substituted good to take the place of evil, truly, I am Oft-Forgiving, Most Merciful.
Save him who hath done wrong and afterward hath changed evil for good. And lo! I am Forgiving, Merciful.