Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:11805ʿAlī b. Aḥmad b. ʿAbdān > Aḥmad b. ʿUbayd al-Ṣaffār > Ibn Milḥān And ʿUbayd b. Sharīk > Yaḥyá > al-Layth > Yūnus > Ibn Shihāb > ʿUbaydullāh b. ʿAbdullāh b. ʿUtbah > Ibn ʿAbbās > al-Ṣaʿb b. Jathhāmah

[Machine] The Messenger of Allah ﷺ said, "There is no contagious disease except for Allah and His Messenger ﷺ ." And it has reached us that the Messenger of Allah ﷺ prevented the spread of plague. And it has also reached us that Umar ibn Al-Khattab prevented the spread of leprosy. This is the wording of the hadith of Ubaid.  

البيهقي:١١٨٠٥أَخْبَرَنَا عَلِيُّ بْنُ أَحْمَدَ بْنِ عَبْدَانَ أنبأ أَحْمَدُ بْنُ عُبَيْدٍ الصَّفَّارُ ثنا ابْنُ مِلْحَانَ وَعُبَيْدُ بْنُ شَرِيكٍ قَالَا ثنا يَحْيَى ثنا اللَّيْثُ عَنْ يُونُسَ عَنِ ابْنِ شِهَابٍ عَنْ عُبَيْدِ اللهِ بْنِ عَبْدِ اللهِ بْنِ عُتْبَةَ عَنِ ابْنِ عَبَّاسٍ عَنِ الصَّعْبِ بْنِ جَثَّامَةَ

أَنَّ رَسُولَ اللهِ ﷺ قَالَ لَا حِمَى إِلَّا لِلَّهِ وَلِرَسُولِهِ قَالَ وَبَلَغَنَا أَنَّ رَسُولَ اللهِ ﷺ حَمَى النَّقِيعَ وَأَنَّ عُمَرَ بْنَ الْخَطَّابِ حَمَى الشَّرَفَ وَالرَّبَذَةَ لَفْظُ حَدِيثِ عُبَيْدٍ  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ يَحْيَى بْنِ بُكَيْرٍ هَكَذَا

See similar narrations below:

Collected by Bukhārī, Bayhaqī
bukhari:2370Yaḥyá b. Bukayr > al-Layth > Yūnus > Ibn Shihāb > ʿUbaydullāh b. ʿAbdullāh b. ʿUtbah > Ibn ʿAbbās > al-Ṣaʿb b. Jathhāmah

Messenger of Allah ﷺ said, No Hima except for Allah and His Apostle. We have been told that Allah's Apostle made a place called An-Naqi' as Hima, and ʿUmar made Ash-Sharaf and Ar-Rabadha Hima (for grazing the animals of Zakat).  

البخاري:٢٣٧٠حَدَّثَنَا يَحْيَى بْنُ بُكَيْرٍ حَدَّثَنَا اللَّيْثُ عَنْ يُونُسَ عَنِ ابْنِ شِهَابٍ عَنْ عُبَيْدِ اللَّهِ بْنِ عَبْدِ اللَّهِ بْنِ عُتْبَةَ عَنِ ابْنِ عَبَّاسٍ ؓ أَنَّ الصَّعْبَ بْنَ جَثَّامَةَ قَالَ

إِنَّ رَسُولَ اللَّهِ ﷺ قَالَ لاَ حِمَى إِلاَّ لِلَّهِ وَلِرَسُولِهِ وَقَالَ بَلَغَنَا أَنَّ النَّبِيَّ ﷺ حَمَى النَّقِيعَ وَأَنَّ عُمَرَ حَمَى السَّرَفَ وَالرَّبَذَةَ  

bayhaqi:13371Abū ʿAbdullāh al-Ḥāfiẓ > Abū Bakr b. Isḥāq > Aḥmad b. Ibrāhīm > Yaḥyá b. Bukayr > al-Layth b. Saʿd > Yūnus b. Yazīd > Ibn Shihāb > ʿUbaydullāh b. ʿAbdullāh b. ʿUtbah > Ibn ʿAbbās > al-Ṣaʿb b. Jathhāmah > Rasūl Allāh Ṣllá

[Machine] The Messenger of Allah ﷺ said, "There is no contagious disease except with the permission of Allah and His Messenger." It has been reported to us that the Messenger of Allah ﷺ had protected against plague, and Umar had protected against smallpox and scrofula.  

البيهقي:١٣٣٧١أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ أَبُو بَكْرِ بْنُ إِسْحَاقَ أنبأ أَحْمَدُ بْنُ إِبْرَاهِيمَ ثنا يَحْيَى بْنُ بُكَيْرٍ ثنا اللَّيْثُ بْنُ سَعْدٍ حَدَّثَنِي يُونُسُ بْنُ يَزِيدَ عَنِ ابْنِ شِهَابٍ عَنْ عُبَيْدِ اللهِ بْنِ عَبْدِ اللهِ بْنِ عُتْبَةَ عَنِ ابْنِ عَبَّاسٍ ؓ أَنَّ الصَّعْبَ بْنَ جَثَّامَةَ قَالَ

قَالَ رَسُولُ اللهِ ﷺ لَا حِمَى إِلَّا لِلَّهِ وَرَسُولِهِ قَالَ وَبَلَغَنَا أَنَّ رَسُولَ اللهِ ﷺ حَمَى النَّقِيعَ وَأَنَّ عُمَرَ حَمَى الشُّرَفَ وَالرَّبَذَةَ  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ يَحْيَى بْنِ بُكَيْرٍ