All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
It seems that this type of magic is similar to the type that was used against the Prophet, sallallaahu ‘alayhi wa sallam, by the Jewish sorcerer Labeed ibn Al-A‘sam. Furthermore, it is known that Allaah The Exalted, undid that spell by making Jibreel (Gabriel) perform Ruqyah for the Prophet, sallallaahu ‘alayhi wa sallam. This incident indicates that it is possible to annul this type of magic using Sharee'ah-approved Ruqyah.
Moreover, when ‘Aa’ishah asked the Prophet, sallallaahu ‘alayhi wa sallam, he indicated that he had not dug out the knotted spell itself. This incident indicates that it is not necessary to find the form of the spell to undo it.
Furthermore, we warn that resorting to magicians and other soothsayers and sorcerers to undo a spell must be avoided. according to evidence from the Sharee'ah (Islamic law).
Allaah Knows best.