(32) باب الطَّاعُونِ وَالطِّيَرَةِ وَالْكَهَانَةِ وَنَحْوِهَا
Usama b. Zaid reported that Allah's Messenger (ﷺ) had said:
Plague is the sign of a calamity with which Allah, the Exalted and Glorious, affects people from His servants. So when you hear about it, don't enter there (where it has broken out), and when it has broken out in a land and you are there, then don't run away from it.
Reference: Sahih Muslim 2218 b
In-book reference: Book 39, Hadith 125
USC-MSA web (English) reference(deprecated numbering scheme): Book 26, Hadith 5494
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.