USC-MSA web (English) : Book 45, Hadith 23
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
الطَّاعُونُ رِجْزٌ أُرْسِلَ عَلَى طَائِفَةٍ مِنْ بَنِي إِسْرَائِيلَ أَوْ عَلَى مَنْ كَانَ قَبْلَكُمْ فَإِذَا سَمِعْتُمْ بِهِ بِأَرْضٍ فَلاَ تَدْخُلُوا عَلَيْهِ وَإِذَا وَقَعَ بِأَرْضٍ وَأَنْتُمْ بِهَا فَلاَ تَخْرُجُوا فِرَارًا مِنْهُ "
Yahya related to me from Malik from Muhammad ibn al-Munkadir and from Salim ibn Abi'n-Nadr, the mawla of Umar ibn Ubaydullah that Amir ibn Sad ibn Abi Waqqas heard his father ask Usama ibn Zayd, "Have you heard anything from the Messenger of Allah (ﷺ) about the plague?" Usama said, "The Messenger of Allah (ﷺ) said, 'The plague is a punishment that was sent down on a party of the Banu Israil or whoever was before them. When you hear of it in a land, do not enter it. If it comes upon a land and you are in it, do not depart in flight from it.' " Malik said that Abu 'n-Nadr said, "That is, do not depart with no other intention but flight."
Full reference and source
USC-MSA web (English) : Book 45, Hadith 23 Arabic : Book 45, Hadith 1622
View source on Sunnah.com (opens in a new tab)