Surah An-Naml — Ayah 11 (27:11)
إِلَّا مَن ظَلَمَ ثُمَّ بَدَّلَ حُسۡنَۢا بَعۡدَ سُوٓءٖ فَإِنِّي غَفُورٞ رَّحِيمٞ ١١
English translation (Saheeh International)
Otherwise, he who wrongs, then substitutes good after evil - indeed, I am Forgiving and Merciful.
Brief commentary
However, whoever wrongs himself by committing a sin, then repents after that, I am Forgiving to him, Merciful to him.