Jabir bin Abdullah reported,

An Arabi pledged allegiance to the Messenger of Allah ﷺ for Islam, then was struck by a fever in Madinah. The Arabi came to the Messenger of Allah ﷺ and said, "Release me from my pledge."The Messenger of Allah ﷺ refused. The Arabi left, then returned and said, "Release me from my pledge."He refused again. The Arabi left, and the Messenger of Allah ﷺ said, "Madinah is like a bellows. It expels its impurities and refines what is pure within it."

Tirmidhi 3920

Sahih

حدثنا الأنصاري حدثنا معن حدثنا مالك بن أنس ح و حدثنا قتيبة عن مالك بن أنس عن محمد بن المنكدر

عن جابر

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

الترمذي 3920صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Virtues
Chapter
Virtue of Madinah
Numbering
Darussalam 3920
Tirmidhi 3920