If one suspects that one has been subjected to some evil power, through a magic spell, incantation, or the like, what should one do? How can one confirm that such a thing has happened, and how to counter its effects?
That black magic exists, there is no doubt. It is mentioned in the Qur’an. But magic has no real substance. It is all illusory and it has no substance. If you look at the references to magic which occur in the Qur’an, you will find that the sorcerers employed by Pharaoh to try to defeat Moses were able to produce “great magic”, that sent a feeling of fear into Moses, despite the fact that he was a messenger of God. Yet that great magic had no substance. God says: “Their ropes and staffs seemed to him to be moving, as a result of their magic.” This shows that they did not move, but he imagined them to be moving.
Could magic have a bad effect on us? Yes, it could, but I do not know how. There may be some evil people who resort to magic in order to disturb others. They may use their evil learning to earn money. They commit a grave sin. It is forbidden to learn magic and to practice it in any way. If a person resorts to such people asking them for help against a third party, both the one asking for that and the one doing it are guilty of disobedience to God.
How to counteract such evil deeds? It is by resorting to the Qur’an, reading it as often as one can, particularly the last two Surahs: Al-Falaq and Al-Nas. One should also appeal to God for protection against all evil. When you have done that, try hard to keep all thoughts of people having cast a spell on you out of your mind. Always maintain that no harm could come to you without God’s permission. Therefore, do all that ensures for you God’s protection, fulfilling your duties, helping other people, particularly those in need. Always place your trust in God, reassuring yourself that no harm or benefit comes from people unless God wills it. He does not will anyone any harm.
Added
Here is a quotation from the commentary by Sayyid Qutb – Translated by Adil Salahi
The Surah, the Day break —Al-Falaq, along with the following one, Mankind — Al-Naas, contains a directive from God primarily to His Prophet, peace be upon him, and secondarily to the believers at large, to take refuge in Him and seek His protection in the face of any source of fear, subtle or apparent, known or unknown. It is as if God — limitless is He in His glory — is unfolding His world of care, and embracing the believers in His guard. He is kindly and affectionately calling on them to resort to His care through which they will feel safe and at peace. It is as if He is saying to them: I know that you are helpless and surrounded by foes and fears. Come to Me for safety, contentment and peace. Hence, the two Surahs start with, “Say, I seek refuge in the Lord of the Day break,” and “Say, I seek refuge in the Lord of mankind.”