Allah's Messenger (ﷺ) said, "Plague was a means of torture sent on a group of Israelis (or on some people before you). So if you hear of its spread in a land, don't approach it, and if a plague should appear in a land where you are present, then don't leave that land in order to run away from it (i.e. plague).
Reference: Sahih al-Bukhari 3473 In-book : Book 60, Hadith 140 USC-MSA web (English) : Vol. 4, Book 55, Hadith 679 (deprecated)
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.