Sufyan bin Abu Zuhayr reported,

I heard the Messenger of Allah ﷺ say, "Yemen will be conquered, and a group of people will come urging their families and those who obey them to migrate there, though Madinah would be better for them if only they knew. Then Sham will be conquered, and a group of people will come urging their families and those who obey them to migrate there, though Madinah would be better for them if only they knew. Then Iraq will be conquered, and a group of people will come urging their families and those who obey them to migrate there, though Madinah would be better for them if only they knew."

Muslim 3365

Sahih

حدثنا محمد بن رافع حدثنا عبد الرزاق أخبرنا ابن جريج أخبرني هشام بن عروة عن أبيه عن عبد الله بن الزبير

عن سفيان بن أبي زهير قال

سمعت رسول الله ﷺ يقول يفتح اليمن فيأتي قوم يبسون فيتحملون بأهليهم ومن أطاعهم والمدينة خير لهم لو كانوا يعلمون ثم يفتح الشام فيأتي قوم يبسون فيتحملون بأهليهم ومن أطاعهم والمدينة خير لهم لو كانوا يعلمون ثم يفتح العراق فيأتي قوم يبسون فيتحملون بأهليهم ومن أطاعهم والمدينة خير لهم لو كانوا يعلمون

مسلم 3365صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Hajj
Chapter
Encouragement to stay in Madinah when the cities are conquered
Numbering
Darussalam 3365
Muslim 3365