Allah's Messenger (ﷺ) said, "Neither Messiah (Ad-Dajjal) nor plague will enter Medina."
Sahih al-Bukhari Book 76, Hadith 46