 allahs acceptance of repentance is only for those who commit evil out of ignorance and then soon repent. it is towards such persons that allah turns graciously. allah is allknowing allwise.
إنما التوبة على الله للذين يعملون السوء بجهالة ثم يتوبون من قريب فأولئك يتوب الله عليهم وكان الله عليما حكيما