An-Nahl • EN-TAFSIR-IBN-ABBAS
﴿ ثُمَّ إِنَّ رَبَّكَ لِلَّذِينَ عَمِلُوا۟ ٱلسُّوٓءَ بِجَهَٰلَةٍۢ ثُمَّ تَابُوا۟ مِنۢ بَعْدِ ذَٰلِكَ وَأَصْلَحُوٓا۟ إِنَّ رَبَّكَ مِنۢ بَعْدِهَا لَغَفُورٌۭ رَّحِيمٌ ﴾
“And once again: Behold, thy Sustainer [shows mercy] to those who do evil out of ignorance and afterwards repent and live righteously: behold, after such [repentance] thy Sustainer is indeed much forgiving, a dispenser of grace.”
(Then lo! thy Lord) O Muhammad (for those who do evil in ignorance) intentionally even if they are ignorant of committing it (and afterward repent) after committing such an evil (and amend) their work between themselves and their Lord - (lo! (for them) thy Lord is afterward) after repentance (indeed Forgiving, Merciful) towards them.