Jabir bin Abdullah reported,

An Arabi pledged allegiance to the Messenger of Allah ﷺ upon Islam. The Arabi then fell ill with a fever in Medina, so he came to the Messenger of Allah ﷺ and said, "Messenger of Allah, release me from my pledge."The Messenger of Allah ﷺ refused.The Arabi came to him again and said, "Release me from my pledge."He refused once more, so the Arabi departed.The Messenger of Allah ﷺ then said, "Medina is like a furnace. It expels its impurities and purifies what is good in it."

Nasai 4190

Sahih

أخبرنا قتيبة عن مالك عن محمد بن المنكدر

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

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

النسائي 4190صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Pledge of allegiance
Chapter
Requesting to be released from a pledge of allegiance
Numbering
Darussalam 4190
Nasai 4190