Sunan Abi Dawud 3103
سنن أبي داود#3103SahihNarrated 'Abd Allah b. 'Abbas:That 'Abd al-Rahman b.'Awf said: I heard the Messenger of Allah (ﷺ) say: When you hear that it is breaking out in a certain territory, do not go there. If it breaks out in the territory you are in, do not go out fleeing away from it. By "it" he referred to the plague
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Al-AlbaniSahih
Muhammad Muhyi Al-Din Abdul HamidSahih
Shuaib Al ArnautSahih
Zubair Ali ZaiSahih Bukhari (5729) Sahih Muslim (2219)
In-book reference: 21:15