Jabir bin Abdullah reported,

An Arabi came to the Prophet ﷺ and said, "Pledge allegiance to me upon Islam." So he pledged allegiance to him upon Islam.He came back the next day stricken with fever and said, "Release me from my pledge."The Prophet ﷺ refused. When the man turned away, the Prophet ﷺ said, "Madinah is like a furnace. It expels its impurities and brings out the purity of what is good in it."

Bukhari 7216

Sahih

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

جابرا قال

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

البخاري 7216صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Rulings
Chapter
One who breaks a pledge of allegiance
Numbering
Darussalam 7216
Bukhari 7216