Sahih Muslim, Book 39, Hadith 125 (Muslim 5715)

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.