The Bee - 16:119
Nevertheless, your Lord is Forgiving, Merciful to those who do evil out of ignorance, then repent and reform, yes, your Lord is Forgiving, Merciful after that.
Related:
The Cattle/6:54
"When those who believe in Our Verses come to you, they say, "Peace be upon you. Your Lord has made it a principle to be merciful. Therefore, whoever repents after an unintentional evil deed and corrects himself, know that He is Forgiving, Merciful."
وَاِذَا جَٓاءَكَ الَّذ۪ينَ يُؤْمِنُونَ بِاٰيَاتِنَا فَقُلْ سَلَامٌ عَلَيْكُمْ كَتَبَ رَبُّكُمْ عَلٰى نَفْسِهِ الرَّحْمَةَۙ اَنَّهُ مَنْ عَمِلَ مِنْكُمْ سُٓوءاً بِجَهَالَةٍ ثُمَّ تَابَ مِنْ بَعْدِه۪ وَاَصْلَحَ فَاَنَّهُ غَفُورٌ رَح۪يمٌ
The Bee/16:119
Nevertheless, your Lord is Forgiving, Merciful to those who do evil out of ignorance, then repent and reform, yes, your Lord is Forgiving, Merciful after that.
ثُمَّ اِنَّ رَبَّكَ لِلَّذ۪ينَ عَمِلُوا السُّٓوءَ بِجَهَالَةٍ ثُمَّ تَابُوا مِنْ بَعْدِ ذٰلِكَ وَاَصْلَحُٓواۙ اِنَّ رَبَّكَ مِنْ بَعْدِهَا لَغَفُورٌ رَح۪يمٌ۟