It is narrated from Sayyiduna Abd al-Rahman bin Awf (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When you hear of it in a land, do not enter it; and when it breaks out in a land where you are present, do not leave it fleeing from it."
Hadith Referenceالمعجم الكبير للطبراني / العشرة / 276