Sayyiduna Usamah bin Zayd (may Allah be pleased with him) narrated: "A man was mentioned before the Messenger of Allah (peace and blessings be upon him) who had set out from a country area until, when he reached a certain point on the way, the epidemic struck him, and this frightened the people. So the Prophet (peace and blessings be upon him) said: 'Indeed, I have hope in Allah that it (the epidemic) will not come in upon us through its (Madinah's) passes and mountain paths.'"
Imam Abu Dawud al-Tayalisi (may Allah have mercy on him) narrated it in his Musnad from Ibrahim bin Sa'd (may Allah have mercy on him).
And Imam Ahmad (may Allah have mercy on him) narrated it from Abu Kamil al-Muzaffar (may Allah have mercy on him), from Ibrahim bin Sa'd (may Allah have mercy on him).
Also, al-Haytham bin Kulayb (may Allah have mercy on him) narrated it from Isa bin Ahmad (may Allah have mercy on him), from Sulayman bin Dawud al-Hashimi (may Allah have mercy on him), from Ibrahim bin Sa'd (may Allah have mercy on him).