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?"
حدثنا يحيى بن إسحاق أخبرنا ليث بن سعد عن يزيد بن أبي حبيب عن ابن شماسة أن
لما ألقى الله عز وجل في قلبي الإسلام قال أتيت النبي ﷺ ليبايعني فبسط يده إلي فقلت لا أبايعك يا رسول الله حتى تغفر لي ما تقدم من ذنبي قال فقال لي رسول الله ﷺ يا عمرو أما علمت أن الهجرة تجب ما قبلها من الذنوب يا عمرو أما علمت أن الإسلام يجب ما كان قبله من الذنوب