Jabir bin Abdullah reported,

An Arabi came to the Prophet ﷺ and pledged allegiance to him on Islam. The next day he came back stricken with fever and said, "Release me from my pledge."The Prophet ﷺ refused. The man asked three times, and each time he refused.Then he said, "Madinah is like a furnace. It expels its impurities and its goodness shines forth pure."

Bukhari 1883

Sahih

حدثنا عمرو بن عباس حدثنا عبد الرحمن حدثنا سفيان عن محمد بن المنكدر

عن جابر رضي الله عنه

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

البخاري 1883صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Virtues of Madinah
Chapter
Madinah expels impurity
Numbering
Darussalam 1883
Bukhari 1883