The Prophet ﷺ said, "There is no contagion, no Safar, and no hamah."
حدثنا أبو اليمان حدثنا شعيب عن الزهري قال
أن النبي ﷺ قال لا عدوى ولا صفر ولا هامة
Its isnad is sahih. Abu Yaman is Hakam bin Nafi, and Shuayb is the son of Abu Hamza. The hadith has already appeared at 15041.