حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، أَخْبَرَنَا مَالِكٌ، عَنْ يَحْيَى بْنِ سَعِيدٍ، قَالَ سَمِعْتُ أَبَا الْحُبَابِ، سَعِيدَ بْنَ يَسَارٍ يَقُولُ سَمِعْتُ أَبَا هُرَيْرَةَ ـ رضى الله عنه ـ يَقُولُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم‏.‏ ‏"‏ أُمِرْتُ بِقَرْيَةٍ تَأْكُلُ الْقُرَى يَقُولُونَ يَثْرِبُ‏.‏ وَهْىَ الْمَدِينَةُ، تَنْفِي النَّاسَ كَمَا يَنْفِي الْكِيرُ خَبَثَ الْحَدِيدِ ‏"‏‏.‏
Translation
Narrated Abu Huraira

Allah's Messenger (ﷺ) said, "I was ordered to migrate to a town which will swallow (conquer) other towns and is called Yathrib and that is Medina, and it turns out (bad) persons as a furnace removes the impurities of iron.

Comment

Virtues of Madinah - Sahih al-Bukhari 1871

Allah's Messenger (ﷺ) said, "I was ordered to migrate to a town which will swallow (conquer) other towns and is called Yathrib and that is Medina, and it turns out (bad) persons as a furnace removes the impurities of iron."

Commentary on the Prophetic Description

The noble hadith establishes Medina's superiority through divine selection, as the Prophet was commanded by Allah to migrate there. The name "Yathrib" was replaced with "Medina" (the city) to signify its elevated status as the City of the Prophet.

The metaphor of "swallowing other towns" indicates Medina's eventual spiritual and political supremacy over all other cities, becoming the center of Islamic governance and knowledge that would influence the entire world.

The Purifying Quality of Medina

The comparison to a furnace purifying iron demonstrates Medina's unique characteristic of refining believers' faith and character. Just as fire separates pure metal from dross, Medina exposes and expels hypocrisy and insincerity from hearts.

This purification occurs through the city's sacred atmosphere, proximity to the Prophet's mosque, and the collective worship of sincere believers, creating an environment where true faith flourishes and falsehood cannot endure.

Scholarly Insights

Imam Ibn Hajar al-Asqalani explains in Fath al-Bari that this hadith contains multiple virtues: divine selection, name change indicating honor, future conquests, and the city's purifying nature that distinguishes true believers from hypocrites.

Al-Qurtubi notes that the purification metaphor specifically refers to how Medina exposed the hypocrites during times of trial, separating them from the sincere companions just as fire separates impurities from pure iron.