Sahih al-Bukhari, Hadith 7211 ⓘ
Narrated Jabir bin `Abdullah: A bedouin gave the Pledge of allegiance to Allah's Messenger for Islam. Then the bedouin got fever at Medina, came to Allah's Messenger and said, "O Allah's Messenger! Cancel my Pledge," But Allah's Apostle refused. Then he came to him (again) and said, "O Allah's Messenger! Cancel my Pledge." But the Prophet refused Then he came to him (again) and said, "O Allah's Messenger! Cancel my Pledge." But the Prophet refused. The bedouin finally went out (of Medina) whereupon Allah's Messenger said, "Medina is like a pair of bellows (furnace): It expels its impurities and brightens and clears its good.
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، أَخْبَرَنَا مَالِكٌ، عَنْ مُحَمَّدِ بْنِ الْمُنْكَدِرِ، عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ،. أَنَّ أَعْرَابِيًّا، بَايَعَ رَسُولَ اللَّهِ صلى الله عليه وسلم عَلَى الإِسْلاَمِ فَأَصَابَ الأَعْرَابِيَّ وَعْكٌ بِالْمَدِينَةِ، فَأَتَى الأَعْرَابِيُّ إِلَى رَسُولِ اللَّهِ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ أَقِلْنِي بَيْعَتِي، فَأَبَى رَسُولُ اللَّهِ صلى الله عليه وسلم ثُمَّ جَاءَهُ فَقَالَ أَقِلْنِي بَيْعَتِي فَأَبَى، ثُمَّ جَاءَهُ فَقَالَ أَقِلْنِي بَيْعَتِي فَأَبَى فَخَرَجَ الأَعْرَابِيُّ، فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " إِنَّمَا الْمَدِينَةُ كَالْكِيرِ تَنْفِي خَبَثَهَا وَيَنْصَعُ طِيبُهَا " .
also referenced under: Book 93, Hadith 71 (In-Book) & Volume 9, Book 89, Hadith 318 (USC-MSA)