the repentance accepted by allah is only for those who do wrong in ignorance and then repent soon after. it is those to whom allah will turn in forgiveness and allah is ever knowing and wise.
إنما التوبة على الله للذين يعملون السوء بجهالة ثم يتوبون من قريب فأولئك يتوب الله عليهم وكان الله عليما حكيما