The Messenger of Allah ﷺ said during the expedition of Tabuk, "If the plague is in a land and you are there, do not leave it, and if it is in a land and you are not there, do not approach it."
حدثنا عبد الصمد حدثنا حماد يعني ابن سلمة
أن رسول الله ﷺ قال في غزوة تبوك إذا كان الطاعون بأرض وأنتم بها فلا تخرجوا عنها وإذا كان بأرض ولستم بها فلا تقربوها