The Messenger of Allah ﷺ said, "The one who repents from a sin is like one who has no sin."
حدثنا أحمد بن سعيد الدارمي حدثنا محمد بن عبد الله الرقاشي حدثنا وهيب بن خالد حدثنا معمر عن عبد الكريم
قال رسول الله ﷺ التائب من الذنب كمن لا ذنب له
No references are available.
[Its chain is daif] Bayhaqi narrated it, 10/154, from the hadith of Raqashi with this wording, and Abdul-Razzaq narrated it from Maamar from Abdul-Kareem (Jazari) with this wording. The hadith has many corroborating narrations, all of them daif, but Ibn Hajar graded it hasan on the strength of its corroborations.