People Infected with Coronavirus are Prohibited to Mix with Others in order to Avoid Transmitting the Infection
The people infected with an infectious disease such as COVID-19 or might be aren't permitted to mix with sound people, in order to avoid transmitting it to the latter; because this will cause damage; particularly, to the people in the first place , country's health, economic and security in addition to causing failure to both private and public sectors.
In this regard, the Prophet (PBUH) ordered us to be in quarantine in case plague breaks out which is considered an infectious disease, since he said (What means):" If you hear that it (plague) has broken out in a land, do not go to it; but if it breaks out in a land where you are present, do not go out escaping from it." Besides, according to scholars, the forbid in the above narration is of the same level of prohibition .i.e. the prohibition of going out a country in if the plague breaks out in it and the prohibition of fleeing away from a country in which the plague has broken out in it.
Moreover, Every infectious disease such as COVID-19 is measured and should has the same procedures of plague, so the infected person isn't permitted to mix with sound people because such an act will definitely cause them harm; in addition, the Prophet (PBUH) said (What means):" There should be neither harming nor reciprocating harm.".
Further, the infected one is not permitted to pray at the Mosque and to avoid gatherings at all and considered sinful if he did otherwise. As the smell of onion and garlic exempts a person from performing congregational prayers in the Mosque, then what will be the case with infectious disease that might cause either death or harm!
Therefore, the infected person has to abide by the quarantine as well as to follow the procedures and instructions issued by specialists, and whosoever isn't committed to the latter procedures is considered sinful according to the ruling of Sharia and his act is of striving with might and main for mischief through the land, for Allah, The Exalted said (What means):" and those strive with might and main for mischief through the land."
Furthermore, whoever violates the above procedures and instructions deserves punishment in this life and in the Hereafter, because he violated what been enjoined by Allah and His Messenger and accordingly, the ruler who ordered the infected person not to mix with others for the good of all people; yet, the latter should act in accordance to the benefit of people as stipulated by jurists and the punishment of the aforementioned violation is determined by him based on the quantity of damage inflicted upon others by the infected person.
Besides, whosoever avoid the quarantine and mixes with others although being infected with infectious disease and causes death to others, is considered murderer and he is obliged to pay Diya and fast for two consecutive months. In addition, the compensation (the Diya and fasting) are due on him for each death that took place due to his violation, for Allah, The Exalted said (What means):" Never should a believer kill a believer; but (If it so happens) by mistake, (Compensation is due): If one (so) kills a believer, it is ordained that he should free a believing slave, and pay compensation to the deceased’s family, unless they remit it freely. If the deceased belonged to a people at war with you, and he was a believer, the freeing of a believing slave (Is enough). If he belonged to a people with whom ye have treaty of Mutual alliance, compensation should be paid to his family, and a believing slave be freed).
Finally, the person infected with COVID-19 and the one who might be should take all proper procedures to preserve their health .i.e. being in quarantine to avoid transmitting the infection and whoever violates that is considered sinful and is to be punished in this life and in the Hereafter; furthermore, if he didn't get his punishment in this life then he won't be able to do so in the Hereafter save if he repent to Allah.