There seems to be an element of contradiction in two Hadiths. One of these tells us to keep away from a person who suffers leprosy, lest we contact the disease. The other says that no disease can be communicated. I should be grateful for explanation.
Scholars have explained the Hadith which states that no such communication exists as meaning that a diseases does not spread by a power of its own. When a person contracts a disease, this happens through God’s will. It is He who has set the laws of nature in operation, and among these laws are the ones which apply to the spread of germs and viruses and how they are transmitted from one sick person to another, either through contact or vectors, etc.
Other Hadiths show clearly that one should keep away from a person who has contracted a communicable disease. You have referred to the Hadith that mentioned the case of a person who has leprosy. It tells us to run away from such a person as we run away from a lion.
Other Hadiths suggest the adoption of certain measures in order to try to control an epidemic. The Prophet, peace be upon him, tells us that if we hear that a certain area is attacked by plague, we should not enter it. If we are already in it, we should not leave it. The Hadith applies to all highly communicable diseases. The communication of diseases, however, does not happen by a power, which the disease has as its own. Otherwise, the disease would have been contracted by conveyance in the village or city where it has spread. That does not happen in actual fact. Contracting a disease takes place as a result of God’s will, which has given certain germs and viruses the power to spread in certain ways. Hence, it is attributed to God, not to the germ or virus.