The Prophet ṣallallāhu 'alayhi wa sallam (peace and blessings of Allāh be upon him) encouraged quarantine:
“Do not put a sick one (animal) with a healthy one (animal)” (Sahih al-Bukhari).
It was not mentioned to lock the healthy or close the masjids .
“If you hear that a plague has hit a land, do not go to it; if it breaks out in a land where you are present, do not leave” (Bukhari)
The Prophetic practice which Muslims are recommended to follow are full of hygienic practices:
a. Washing hands upon awakening
b. Performing ablution and washing five times a day for prayers.
c. Washing before/after eating
d. covering mouth when sneezing
Ibn Hajar advises against sharing items that are commonly used during an outbreak to prevent the spread of the outbreak. (Fath al-Bari)
Islam encourages immediate burial. One of the wisdoms of this is to contain any disease in the carrier from being passed on.
The Prophet told us:
“There is a remedy for every malady, and when the remedy is applied to the disease it is cured with the permission of Allah, the Exalted and Glorious.” (Sahih Muslim)
We believe in what the Prophet told us:
“Diseases are not intrinsically contagious.” (Sahih al-Bukhari)
One only becomes infected by the permission of Allah. However, all precaution is encouraged due to knowing that Allah permits transfer through contact and His practice is to transfer through contacting infected people generally.
One’s belief and focus should solely be on Allah as the Prophet Ibrahim taught us:
“It is He has created me, and it is He Who guides me; And it is He Who feeds me and gives me to drink. And when I am ill, it is He who cures me. (Qur’an 26:78-82)
Making Duas to Allah for protection from this pandemic or if its a plandemic, as He alone is the ultimate saviour and refuge