Dr. Muhammad Abu Laylah, professor of the Islamic Studies & Comparative Religions at Al-Azhar Univ. states: A Muslim should also repeat sending peace and blessings on the Prophet (peace and blessings be upon him), do some istighfar (asking Allah for forgiveness), be generous because the jinn attacks the miserly people, and keep his house clean. Whenever he feels something strange and his body corresponds to these feelings he should utter the name of Allah and seek Allah’s refuge. This is generally what a Muslim follower can do. But if something serious happens, he should refer the matter to a sincere pious Muslim scholar who knows about the subject and can help.
Regarding non-Muslims, I should draw your attention to the fact that Allah takes control over everything in the world and He initially protects the human kind from Jinn and nothing can cause benefit or harm except with Allah’s permission. This is a general ruling. But in order to protect one’self against the transgressive jinns, the non-Muslim should act rightly at least in the dunya (worldly life), i.e. he should not drink wine not commit fornication or adultery. He should not be unjust to others nor cause harm to others. This can help him to be protected from jinn.
In the case a non-Muslim suffered the attack of jinn, he/she should refer it to his religion’s authority to treat him or better approach a Muslim who knows that matter. In the UK, I was myself seeing some non-Muslims who were suffering from jinn and I treated them thanks to Allah. But generally speaking, if one has been attacked that one who is supposed to treat him should recite the beginning and end of surat Al-Baqarah, surat Yaseen, As-Safat and Ar-Rahman. He can also repeat the name of Allah while putting his hand over the one who is suffering from jinn and do some takbir. But it is necessary to distinguish between jinn’s attack and natural and psychological diseases.
Finally, we ask Allah Almighty to protect you and us all against evils and to grant you happiness in this worldly life and in the Hereafter.”