Sahih al-Bukhari 1881
Book 29: Virtues of Madinah · Hadith 15
Hadith text
Narrated Anas bin Malik:The Prophet (ﷺ) said, "There will be no town which Ad-Dajjal will not enter except Mecca and Medina, and there will be no entrance (road) (of both Mecca and Medina) but the angels will be standing in rows guarding it against him, and then Medina will shake with its inhabitants thrice (i.e. three earthquakes will take place) and Allah will expel all the non-believers and the hypocrites from it
Anas bin Malik (رضی اللہ عنہ) bataate hain: Nabi ne farmaya: "Koi shehar aisa nahi hoga jismein Ad-Dajjal daakhil na ho siwaye Mecca aur Madina ke, aur (dono ke) har raaste par farishte safon mein khade hokar usse (Dajjal se) hifazat karenge, phir Madina apne bashindon samet teen baar hilega (yaani teen zalzale honge) aur Allah sab kaafiron aur munafiqon ko usse nikaal dega."
Sahih al-Bukhari 1881 · Book 29, Hadith 15