Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:17827Yaḥyá b. Isḥāq > Layth b. Saʿd > Yazīd b. Abū Ḥabīb > Ibn Shimāsah > ʿAmr b. al-ʿĀṣ

[Machine] "When Allah ﷻ placed Islam in my heart, I went to the Prophet ﷺ to pledge allegiance to him. He extended his hand to me, but I said, 'I will not pledge allegiance to you, O Messenger of Allah, until you forgive me for my past sins.' The Messenger of Allah ﷺ then said to me, 'O 'Amr, do you not know that migration erases what came before it of sins? O 'Amr, do you not know that Islam erases what came before it of sins?'"  

أحمد:١٧٨٢٧حَدَّثَنَا يَحْيَى بْنُ إِسْحَاقَ أَخْبَرَنَا لَيْثُ بْنُ سَعْدٍ عَنْ يَزِيدَ بْنِ أَبِي حَبِيبٍ عَنْ ابْنِ شِمَاسَةَ أَنَّ عَمْرَو بْنَ الْعَاصِ قَالَ

لَمَّا أَلْقَى الله ﷻ فِي قَلْبِي الْإِسْلَامَ قَالَ أَتَيْتُ النَّبِيَّ ﷺ لِيُبَايِعَنِي فَبَسَطَ يَدَهُ إِلَيَّ فَقُلْتُ لَا أُبَايِعُكَ يَا رَسُولَ اللهِ حَتَّى تَغْفِرَ لِي مَا تَقَدَّمَ مِنْ ذَنْبِي قَالَ فَقَالَ لِي رَسُولُ اللهِ ﷺ يَا عَمْرُو أَمَا عَلِمْتَ أَنَّ الْهِجْرَةَ تَجُبُّ مَا قَبْلَهَا مِنَ الذُّنُوبِ يَا عَمْرُو أَمَا عَلِمْتَ أَنَّ الْإِسْلَامَ يَجُبُّ مَا كَانَ قَبْلَهُ مِنَ الذُّنُوبِ