“The ibtilaa’ (testing) of the believer is like medicine for him. It cures him from illness. Had the illness remained it would destroy him or diminish his reward and level (in the hereafter). The tests and the trials extract these illnesses from him and prepare him for the perfect reward and highest of degrees (in the life to come)”.
Ibn Qayyim al Jawziyyah
The first point of treatment and protection is when a person is close to Allāh, always remembering Him (dhikr) and reading Qur’ān, he is less likely to be effected by the evil eye and other kinds of harm from the devils. The individual constant in this will be content, peaceful and have a better understanding of the purpose of his creation.
Adapted from “Sword Against Black Magic and Evil Magicians by Wahid Ibn Abdussalam Bali”