Sura An-Nahl

16:119

ثُمَّ إِنَّ رَبَّكَ لِلَّذِينَ عَمِلُوا۟ ٱلسُّوٓءَ بِجَهَٰلَةٍۢ ثُمَّ تَابُوا۟ مِنۢ بَعْدِ ذَٰلِكَ وَأَصْلَحُوٓا۟ إِنَّ رَبَّكَ مِنۢ بَعْدِهَا لَغَفُورٌۭ رَّحِيمٌ

Och - än en gång - de som handlar orätt av okunnighet och som därefter grips av ånger och bättrar sig - efter denna [sinnesändring] skall helt visst din Herre [låta dem erfara att] Gud är ständigt förlåtande, barmhärtig.

Tafsir 16:119

Then your Lord - O Messenger - towards those who do evil deeds out of ignorance of the consequences, even though they do so deliberately, and then they repent to Allah after having done those evil deeds and they make amends to their actions in which there was corruption, your Lord, after repentance, forgives their sins and is merciful to them.