كتاب السلام
39  
The Book of Greetings
(32)
Chapter: The Plague, Ill Omens, Soothsaying And The Like
(32)
باب الطَّاعُونِ وَالطِّيَرَةِ وَالْكَهَانَةِ وَنَحْوِهَا ‏‏
Sahih Muslim 2218 a

'Amir b. Sa'd b. Abu Waqqas reported on the authority of his father that he asked Usama b. Zaid:

What have you heard from Allah's Messenger (ﷺ) about plague? Thereupon Usama said: Allah's Messenger (ﷺ) said: Plague is a calamity which was sent to Bani Isra'il or upon those who were before you. So when you hear that it has broken out in a land, don't go to it, and when it has broken out in the land where you are, don't run out of it. In the narration transmitted on the authority of Abu Nadr there is a slight variation of wording.
حَدَّثَنَا يَحْيَى بْنُ يَحْيَى، قَالَ قَرَأْتُ عَلَى مَالِكٍ عَنْ مُحَمَّدِ بْنِ الْمُنْكَدِرِ، وَأَبِي النَّضْرِ، مَوْلَى عُمَرَ بْنِ عُبَيْدِ اللَّهِ عَنْ عَامِرِ بْنِ سَعْدِ بْنِ أَبِي وَقَّاصٍ، عَنْ أَبِيهِ، أَنَّهُ سَمِعَهُ يَسْأَلُ، أُسَامَةَ بْنَ زَيْدٍ مَاذَا سَمِعْتَ مِنْ، رَسُولِ اللَّهِ صلى الله عليه وسلم فِي الطَّاعُونِ فَقَالَ أُسَامَةُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ الطَّاعُونُ رِجْزٌ أَوْ عَذَابٌ أُرْسِلَ عَلَى بَنِي إِسْرَائِيلَ أَوْ عَلَى مَنْ كَانَ قَبْلَكُمْ فَإِذَا سَمِعْتُمْ بِهِ بِأَرْضٍ فَلاَ تَقْدَمُوا عَلَيْهِ وَإِذَا وَقَعَ بِأَرْضٍ وَأَنْتُمْ بِهَا فَلاَ تَخْرُجُوا فِرَارًا مِنْهُ ‏"‏ ‏.‏ وَقَالَ أَبُو النَّضْرِ ‏"‏ لاَ يُخْرِجُكُمْ إِلاَّ فِرَارٌ مِنْهُ ‏"‏ ‏.‏
Reference : Sahih Muslim 2218a
In-book reference : Book 39, Hadith 124
USC-MSA web (English) reference : Book 26, Hadith 5493
  (deprecated numbering scheme)