17إِنَّمَا التَّوبَةُ عَلَى اللَّهِ لِلَّذينَ يَعمَلونَ السّوءَ بِجَهالَةٍ ثُمَّ يَتوبونَ مِن قَريبٍ فَأُولٰئِكَ يَتوبُ اللَّهُ عَلَيهِم ۗ وَكانَ اللَّهُ عَليمًا حَكيمًا(Saheeh International)The repentance accepted by Allāh is only for those who do wrong in ignorance [or carelessness] and then repent soon after. It is those to whom Allāh will turn in forgiveness, and Allāh is ever Knowing and Wise.