Musnad Ahmad 1536
Grading supplied with this record: Sahih (Darussalam) [ al-Bukhari (3473) and Muslim (2218)]
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
Habeeb bin Abi Thabit said: I came to Madinah and we heard that the plague had broken out in Koofah. I said: Who narrated this Hadeeth? It was said: "Amir bin Sa"d, And it was said: He was not there. Then i met Ibraheem bin Sa"d and he told me that he heard Usamah bin Zaid tell Sa"d that the Messenger of Allah (ﷺ) said:
"If the plague breaks out in a land, do not enter it, and if it breaks out in a land where you are, do not leave it." I said: Did you hear it from Usamah? He said: Yes.
Full reference and source
Musnad Ahmad 1536 Arabic/English book : Book 8, Hadith 1536
View source on Sunnah.com (opens in a new tab)