Sahih Bukhari | Volume 3 | Hadith Number 95

Narrated by Abu Huraira
Allah's Apostle 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.