Anas bin Malik reported,

The Prophet ﷺ said, "There is no land that Dajjal will not trample upon except Makkah and Madinah. Every mountain pass leading to them will be guarded by ranks of angels standing watch. Then Madinah will be shaken by three tremors, through which Allah will drive out every disbeliever and hypocrite."

Azami 16059

Sahih

عن أنس بن مالك

عن النبي ﷺ قال: ليس من بلد إلا سيطؤه الدجال إلا مكة والمدينة، ليس له من نقابها نقب إلا عليه الملائكة صافين يحرسونها، ثم ترجف المدينة بأهلها ثلاث رجفات، فيخرج الله كل كافر ومنافق.

الأعظمي 16059صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tribulations and signs of the Hour
Chapter
Major signs of the Hour
Section
Dajjal will not enter Makkah and Madinah
Numbering
Jami al-Kamil 16059 (2nd edition)
Azami 16059