Language:
كتاب الاعتصام بالكتاب والسنة
96  
Holding Fast to the Qur'an and Sunnah
(16)
Chapter: The religious learned men should not differ
(16)
باب مَا ذَكَرَ النَّبِيُّ صلى الله عليه وسلم وَحَضَّ عَلَى اتِّفَاقِ أَهْلِ الْعِلْمِ
Sahih al-Bukhari 7322

Narrated Jabir bin 'Abdullah As-Salami:

A bedouin gave the Pledge of allegiance for embracing Islam to Allah's Messenger (ﷺ), and then he got an attack of fever in Medina and came to Allah's Messenger (ﷺ): and said, "O Allah's Messenger (ﷺ)! Cancel my pledge." Allah's Messenger (ﷺ) refused to do so. The bedouin came to him again and said, "Cancel my pledge," but he refused again, and then again, the bedouin came to him and said, "Cancel my pledge," and Allah's Messenger (ﷺ) refused. The bedouin finally went away, and Allah's Messenger (ﷺ) said, "Medina is like a pair of bellows (furnace), it expels its impurities while it brightens and clears its good.'

حَدَّثَنَا إِسْمَاعِيلُ، حَدَّثَنِي مَالِكٌ، عَنْ مُحَمَّدِ بْنِ الْمُنْكَدِرِ، عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ السَّلَمِيِّ، أَنَّ أَعْرَابِيًّا، بَايَعَ رَسُولَ اللَّهِ صلى الله عليه وسلم عَلَى الإِسْلاَمِ، فَأَصَابَ الأَعْرَابِيَّ وَعْكٌ بِالْمَدِينَةِ، فَجَاءَ الأَعْرَابِيُّ إِلَى رَسُولِ اللَّهِ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ أَقِلْنِي بَيْعَتِي‏.‏ فَأَبَى رَسُولُ اللَّهِ صلى الله عليه وسلم ثُمَّ جَاءَهُ فَقَالَ أَقِلْنِي بَيْعَتِي‏.‏ فَأَبَى ثُمَّ جَاءَهُ فَقَالَ أَقِلْنِي بَيْعَتِي‏.‏ فَأَبَى فَخَرَجَ الأَعْرَابِيُّ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ إِنَّمَا الْمَدِينَةُ كَالْكِيرِ، تَنْفِي خَبَثَهَا، وَيَنْصَعُ طِيبُهَا ‏"‏‏.‏
Reference : Sahih al-Bukhari 7322
In-book reference : Book 96, Hadith 52
USC-MSA web (English) reference : Vol. 9, Book 92, Hadith 424
  (deprecated numbering scheme)