أَنَسُ بْنُ مَالِكٍ رضى الله عنه عَنِ النَّبِيِّ صلّى الله عليه وسلّم قَالَ: لَيْسَ مِنْ بَلَدٍ إِلاَّ سَيَطَؤُهُ الدَّجَّالُ، إِلاَّ مَكَّةَ وَالْمَدِينَةَ، لَيْسَ لَهُ مِنْ نِقَابِهَا نَقْبٌ إِلاَّ عَلَيْهِ الْمَلاَئِكَةُ صَافِّينَ، يَحْرُسُونَهَا، ثُمَّ تَرْجُفُ الْمَدِينَةُ بِأَهْلِهَا ثَلاَثَ رَجَفَاتٍ، فَيُخْرِجُ اللَّهُ كُلَّ كَافِرٍ وَمُنَافِقٍ
It is narrated by Hazrat Anas bin Malikra that the Holy Prophetsa said: “There will not be a town which the Dajjal does not enter, except for Mecca and Medina. At every entrance, angels will stand guard in rows, preventing his intrusion. Subsequently, Medina will undergo three tremours along with its inhabitants, prompting Allah to purge it of all disbelievers and hypocrites.”
(Sahih al-Bukhari, Kitab fada’ili l-madinah, Bab la yadkhulu d-dajjalu l-madinah, Hadith 1881)