The prophet Muhammad said that plague is a form of punishment from God that was inflicted upon past nations. He advised that if plague emerges in an area, people should not travel to that area, and if it emerges where people are located, they should not flee from that area to avoid becoming infected.