Mishkat al-Masabih
Mishkat al-Masabih 2739
وَعَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ: أَنَّ أَعْرَابِيًّا بَايَعَ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَأَصَابَ الْأَعْرَابِيَّ وَعَكٌ بِالْمَدِينَةِ فَأَتَى النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ: يَا مُحَمَّدُ أَقِلْنِي بَيْعَتِي فَأَبَى رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ثُمَّ جَاءَهُ فَقَالَ: أَقِلْنِي بَيْعَتِي فَأَبَى ثُمَّ جَاءَهُ فَقَالَ: أَقِلْنِي بَيْعَتِي فَأَبَى فَخَرَجَ الْأَعْرَابِيُّ فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِنَّمَا الْمَدِينَةُ كَالْكِيرِ تَنْفِي خبثها وتنصع طيبها»
Jabir ibn ‘Abd Allah reported: A Bedouin pledged allegiance to the Messenger of Allah ﷺ, then suffered a fever in Madinah. He came to the Prophet ﷺ and said: “Muhammad, release me from my pledge.” The Messenger of Allah ﷺ refused. He came again and asked to be released, and the Prophet ﷺ refused. He came a third time and asked again, but the Prophet ﷺ refused. The Bedouin then left. The Messenger of Allah ﷺ said: “Madinah is like a furnace: it expels its impurities and refines what is good in it.” [Agreed upon]