Hazrat Abu Huraira quotes Prophet ﷺ that in times of epidemic whoever stays in his house in isolation (to avoid spread) shud stay with patience & firm belief that without Allah's orders he cannot be harmed & (whether he dies or survives) he will be a Shaheed (Masnad Imam Hanbal)