When a sinful one obeys the order of Allah concerning the matter of repentance, tries to act according to the conditions of repentance and to follow the way that the Holy Qur'an has determined for the repentant, definitely his repentance will be accepted by Allah for Allah has promised sinful people who repent to accept their repentances. Such one is fit so that Allah purifies him from the consequences of sin and changes the darkness of his inners into light and brightness.
Allah has said,
“Do they not know that Allah accepts repentance from His servants…” Qur'an, 9:104
“And He it is Who accepts repentance from His servants and pardons the evil deeds.” Qur'an, 42:25
“The Forgiver of the faults and the Acceptor of repentance.” Qur'an, 40:3
source : REPENTANCE THE CRADLE OF MERCY By Husayn Ansariyan