Narrated Usama bin Zaid:
Allah’s Apostle 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).”
Sahih Bukhari, Volume 4, Book56, Number 679