Jabir bin Abdullah reported,

An Arabi pledged allegiance to the Prophet ﷺ upon Islam, then he was struck by a fever in Medina. He came to the Prophet ﷺ and said, "Muhammad, release me from my pledge."The Messenger of Allah ﷺ refused.Then he came again and said, "Release me from my pledge."He refused.Then he came once more and said, "Release me from my pledge."He refused, and the Arabi departed.The Messenger of Allah ﷺ then said, "Medina is like a bellows. It expels its impurities and purifies what is good in it."

Azami 10637

Sahih

عن جابر بن عبد الله

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

الأعظمي 10637صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the lands
Chapter
Virtue of the Prophet's Madinah
Section
Madinah expels its evil ones
Numbering
Jami al-Kamil 10637 (2nd edition)
Azami 10637