The repentance accepted by Allah is only for those who do wrong in ignorance [or carelessness] and then repent soon after. It is those to whom Allah will turn in forgiveness, and Allah is ever Knowing and Wise.
Tafseer
{ إنما التوبة على الله } أي التي كتب على نفسه قبولها بفضله { للذين يعملون السوء } المعصية { بجهالة } حال أي جاهلين إذا عصوا ربهم { ثم يتوبون من } زمن { قريب } قبل أن يغرغروا { فأولئك يتوب الله عليهم } يقبل توبتهم { وكان الله عليما } بخلقه { حكيما } في صنعه بهم .
But repentance to God any which he wrote himself accepted by it for those who do evil sin ignorance if any ignorant if they disobeyed their Lord then repent of time near before Agrgerwa Those Allah forgives them accept their repentance was Knower of God to His creation wise in their manufacture.