Sahih al-Bukhari 7322
Isma'il narrated to us that Malik told me. He narrated from Muhammad bin Munkadir, and Muhammad from Hazrat Jabir bin Abdullah Salami (ra), that a Bedouin took the pledge of allegiance (bay'ah) at the hand of the Messenger of Allah (saw) on Islam (to remain steadfast in it). This Bedouin caught a fever (right there) in Medina, so the Bedouin came to the Messenger of Allah (saw) and said: O Messenger of Allah (saw), cancel my pledge. The Messenger of Allah (saw) refused. Then he came to him (saw) and said: Cancel my pledge. He (saw) refused. Then he came to him (saw) and said: Cancel my pledge. He (saw) refused. Upon this the Bedouin went out and left, and the Messenger of Allah (saw) said: “Medina is just like a furnace. It casts out its dross, and what is pure in it becomes refined.”
AI-translated by Islam-Today