Sahih Muslim – Hadith No : 3421

Jabir b. Abdullah (Allah be pleased with them) reported that a desert Arab swore allegiance to Allah’s Messenger (may peace be upon him). He suffered frozn a severe fever in Medina (and) so he came to Allah’s Messenger (may peace be upon him) saying: Mubammad. cancel my oath of allegiance, but Allah’s Messenger (may peace be upon him) refused it. He again came and caid: Cancel my oath of allegiance. but he (the Holy Prophet) refused it. He again came to him and said: Cancel my oath of allegiance, but he refused. The desert Arab, however, went away (cancelling the allegiance himself) ; thereupon Allah’s Messenger (may peace be upon him) said: Medina is like a furnace which drives away its impurity and purifies what is good.

Hadith In Arabic Text :

حدثنا يحيى بن يحيى، قال قرأت على مالك عن محمد بن المنكدر، عن جابر، بن عبد الله أن أعرابيا، بايع رسول الله صلى الله عليه وسلم فأصاب الأعرابي وعك بالمدينة فأتى النبي صلى الله عليه وسلم فقال يا محمد أقلني بيعتي ‏.‏ فأبى رسول الله صلى الله عليه وسلم ثم جاءه فقال أقلني بيعتي ‏.‏ فأبى ثم جاءه فقال أقلني بيعتي ‏.‏ فأبى فخرج الأعرابي فقال رسول الله صلى الله عليه وسلم ‏”‏ إنما المدينة كالكير تنفي خبثها وينصع طيبها ‏”‏ ‏.‏

Chapter : The Book of Pilgrimage – كتاب الحج