Jabir reported: A bedouin came to the Prophet, peace and blessings be upon him, and gave the pledge of allegiance for embracing Islam. The next day he came with a fever and he said, “Cancel my pledge.” The Prophet refused three times and he said, “Medina is like a furnace. It expels its impurities and makes use of what is pure.”
Source: Ṣaḥīḥ al-Bukhārī 1784, Ṣaḥīḥ Muslim 1383
Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim
عَنْ جَابِرٍ رَضِيَ اللَّهُ عَنْهُ جَاءَ أَعْرَابِيٌّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَبَايَعَهُ عَلَى الإِسْلاَمِ فَجَاءَ مِنَ الْغَدِ مَحْمُومًا فَقَالَ أَقِلْنِي فَأَبَى ثَلاَثَ مِرَارٍ فَقَالَ الْمَدِينَةُ كَالْكِيرِ تَنْفِي خَبَثَهَا وَيَنْصَعُ طَيِّبُهَا
1784 صحيح البخاري كتاب فضائل المدينة باب المدينة تنفي الخبث
1383 صحيح مسلم كتاب الحج باب المدينة تنفي شرارها