Sahih al-Bukhari #1871
Virtues of Madinah 29:5
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.