“O virtuous Shaikh! What is the ruling on curing magic with magic out of a need?”
Al-‘Allâmah Sâlih al-Fawzân:
“There is no need; there is no need; Magic is not cured with disbelief, because magic is disbelief – and Allaah’s refuge is sought – be it learning, teaching and acting upon it. Disbelief is not (used) as a cure. He (sallal-laahu-alayhi-wasallam) said: “Seek (medical treatment), but do not (seek medical treatment) with what is Haraam.” Abdullaah Ibn Mas’ood (radiyallaahu-anhu) stated as (reported) in Bukhaari: “Indeed Allaah has not placed your cure in that which He has forbidden for you.” Yes.