Abu Hurairah reported,

The Messenger of Allah ﷺ said, "A time will come upon people when a man will call out to his cousin and relative, 'Come to a place of ease and plenty,' though Madinah is better for them, if only they knew. By the One in whose hand is my soul, no one leaves it out of dislike for it except that Allah replaces him in it with someone better. Indeed, Madinah is like a bellows, it expels the impure. The Hour will not come until Madinah drives out its wicked people just as the bellows drives out the impurities of iron."

Azami 10636

Sahih

عن أبي هريرة

أن رسول الله ﷺ قال: يأتي على الناس زمان يدعو الرجل ابن عمه وقريبه، هلم إلى الرخاء، والمدينة خير لهم لو كانوا يعلمون، والذي نفسي بيده لا يخرج منهم أحد رغبة عنها إلا أخلف الله فيها خيرا منه، ألا إن المدينة كالكير، تخرج الخبيث، لا تقوم الساعة حتى تنفي المدينة شرارها كما ينفي الكير خبث الحديد.

الأعظمي 10636صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the lands
Chapter
Virtue of the Prophet's Madinah
Section
Madinah expels its evil ones
Numbering
Jami al-Kamil 10636 (2nd edition)
Azami 10636