Resorting to witchcraft as a means of treatment is Haram (prohibited). In fact, it is an act of Shirk Akbar (major form of associating others in worship with Allah). Therefore, it is unlawful to undo witchcraft by using witchcraft.
(Part No. 1; Page No. 565) The person afflicted by witchcraft should be treated with Ruqyah (reciting Qur’an and saying supplications over the sick seeking healing) and the permissible invocations stated in the Qur’an and in the authentically reported Prophetic Hadiths.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.