Mishkat al-Masabih 28
وَعَن عَمْرو بن الْعَاصِ قَالَ: «أَتَيْتُ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقلت ابْسُطْ يَمِينك فلأبايعك فَبسط يَمِينه قَالَ فَقَبَضْتُ يَدِي فَقَالَ مَا لَكَ يَا عَمْرُو قلت أردْت أَن أشْتَرط قَالَ تَشْتَرِطُ مَاذَا قُلْتُ أَنْ يُغْفَرَ لِي قَالَ أما علمت أَنَّ الْإِسْلَامَ يَهْدِمُ مَا كَانَ قَبْلَهُ وَأَنَّ الْهِجْرَةَ تَهْدِمُ مَا كَانَ قَبْلَهَا وَأَنَّ الْحَجَّ يهدم مَا كَانَ قبله» ؟ وَالْحَدِيثَانِ الْمَرْوِيَّانِ عَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ اللَّهُ تَعَالَى: «أَنَا أَغْنَى الشُّرَكَاءِ عَنِ الشِّرْكِ» . والاخر: «الْكِبْرِيَاء رِدَائي» سَنَذْكُرُهُمَا فِي بَابِ الرِّيَاءِ وَالْكِبْرِ إِنْ شَاءَ الله تَعَالَى
From ʿAmr ibn al-ʿAs, who said: I came to the Prophet ﷺ and said: "Stretch out your right hand so that I may pledge allegiance to you." He stretched out his right hand, and I withdrew my hand. He said: "What is the matter with you, O ʿAmr?" I said: "I want to set a condition." He said: "What condition would you set?" I said: "That I be forgiven." He said: "Do you not know that Islam wipes out what came before it, that emigration wipes out what came before it, and that Hajj wipes out what came before it?" As for the two hadiths narrated from Abu Hurayrah, who said: Allah the Exalted said: "I am the most free of partners from need of partnership," and the other: "Pride is My cloak," we will mention them in the chapter on showing off and arrogance, if Allah the Exalted wills.