Language:
كتاب الأحكام
93  
Judgments (Ahkaam)
(45)
Chapter: The giving of the Bai'a by the bedouins
(45)
باب بَيْعَةِ الأَعْرَابِ
Sahih al-Bukhari 7209

Narrated Jabir bin `Abdullah:

A bedouin gave the Pledge of allegiance to Allah's Messenger (ﷺ) for Islam and the bedouin got a fever where upon he said to the Prophet (ﷺ) "Cancel my Pledge." But the Prophet (ﷺ) refused. He came to him (again) saying, "Cancel my Pledge.' But the Prophet (ﷺ) refused. Then (the bedouin) left (Medina). Allah's Apostle said: "Medina is like a pair of bellows (furnace): It expels its impurities and brightens and clears its good."

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