Abu Ubaydah narrates from Sayyiduna Abdullah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "The one who repents from sin is like one who has not sinned at all."
So he said, and it is an error (wahm); the hadith is (narrated) from Abd al-Karim, from Ziyad bin Abi Maryam, from Abdullah bin Ma'qil, from Abdullah bin Mas'ud (may Allah be pleased with him), as has preceded; and Allah knows best. It has also been narrated with this wording through weak chains.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الشهادات / 20561