Yazid bin Abi Ziyad says: Migration is not (permissible) from a city whose inhabitants have become Muslims. With this chain as well, Yazid bin Abi Ziyad narrated in the same manner, and the chain of both is the same.
Hadith Referenceسنن ابن ماجه / كتاب الكفارات / 2116M