Sahih al-Bukhari 7216
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
الْمَدِينَةُ كَالْكِيرِ، تَنْفِي خَبَثَهَا، وَيَنْصَعُ طِيبُهَا "
Narrated Jabir:
A bedouin came to the Prophet (ﷺ) and said, "Please take my Pledge of allegiance for Islam." So the Prophet took from him the Pledge of allegiance for Islam. He came the next day with a fever and said to the Prophet (ﷺ) "Cancel my pledge." But the Prophet (ﷺ) refused and when the bedouin went away, the Prophet said, "Medina is like a pair of bellows (furnace): It expels its impurities and brightens and clears its good."
Full reference and source
Sahih al-Bukhari 7216 In-book : Book 93, Hadith 76 USC-MSA web (English) : Vol. 9, Book 89, Hadith 323 (deprecated)
View source on Sunnah.com (opens in a new tab)