Surah Al-Ankaboot · 29:7
وَالَّذِينَ آمَنُوا وَعَمِلُوا الصَّالِحَاتِ لَنُكَفِّرَنَّ عَنْهُمْ سَيِّئَاتِهِمْ وَلَنَجْزِيَنَّهُمْ أَحْسَنَ الَّذِي كَانُوا يَعْمَلُونَ
And as for those who attain to faith and do righteous deeds, We shall most certainly efface their [previous] bad deeds, and shall most certainly reward them in accordance with the best that they ever did.
Read Surah Al-Ankaboot 29:7: "And as for those who attain to faith and do righteous deeds, We shall most certainly efface their [previous] bad deeds, ..." Full Arabic text, English translation, and image generator.