عَنْ يَحْيَى بْنِ سَعْدٍ رَضِيَ اللَّهُ عَنْهُ عَنْ أَبِيهِ رَضِيَ اللَّهُ عَنْهُ قَالَ ذُكِرَ الطَّاعُونُ عِنْدَ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ فَقَالَ رِجْزٌ أُصِيبَ بِهِ مَنْ كَانَ قَبْلَكُمْ فَإِذَا كَانَ بِأَرْضٍ فَلَا تَدْخُلُوهَا وَإِذَا كَانَ بِهَا وَأَنْتُمْ بِهَا فَلَا تَخْرُجُوا مِنْهَا
Sayyiduna Sa’d bin Abi Waqqas (may Allah be pleased with him) narrates that the Noble Prophet (peace and blessings be upon him) was mentioned about the plague. He (peace and blessings be upon him) said: This was a punishment which was sent to the people before you. When it occurs in any area, do not enter it, and when you are present in a land and the plague breaks out there, then do not leave from there.