(32) باب الطَّاعُونِ وَالطِّيَرَةِ وَالْكَهَانَةِ وَنَحْوِهَا
'Amir b. Sa'd reported that a person asked Sa'd b. Abu Waqqas about the plague, whereupon Usama b. Zaid said:
I would inform you about it. The Messenger of Allah (ﷺ) said: It is a calamity or a disease which Allah sent to a group of Bani Isra'il, or to the people who were before you; so when you hear of it in land, don't enter it and when it has broken out in your land, don't run away from it.
Reference: Sahih Muslim 2218 d
In-book reference: Book 39, Hadith 127
USC-MSA web (English) reference(deprecated numbering scheme): Book 26, Hadith 5496