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 15960

Sahih

عن أبي هريرة

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

الأعظمي 15960صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tribulations and signs of the Hour
Chapter
Minor signs of the Hour
Section
Hour will not come until Madinah expels its wicked people
Numbering
Jami al-Kamil 15960 (2nd edition)
Azami 15960