Amr bin As reported,

When Allah عز وجل cast Islam into my heart, I came to the Prophet ﷺ so that he might accept my pledge of allegiance. He extended his hand toward me, but I said, "I will not pledge allegiance to you, Messenger of Allah, until you forgive me my past sins."The Messenger of Allah ﷺ said to me, "Amr, do you not know that emigration wipes out whatever sins came before it? Amr, do you not know that Islam wipes out whatever sins came before it?"

Ahmad 17827

Sahih

حدثنا يحيى بن إسحاق أخبرنا ليث بن سعد عن يزيد بن أبي حبيب عن ابن شماسة أن

عمرو بن العاص قال

لما ألقى الله عز وجل في قلبي الإسلام قال أتيت النبي ﷺ ليبايعني فبسط يده إلي فقلت لا أبايعك يا رسول الله حتى تغفر لي ما تقدم من ذنبي قال فقال لي رسول الله ﷺ يا عمرو أما علمت أن الهجرة تجب ما قبلها من الذنوب يا عمرو أما علمت أن الإسلام يجب ما كان قبله من الذنوب

أحمد 17827صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Amr bin As
Numbering
Darussalam 17827
Ahmad 17827