Compiled by: Dr. Raza Abdullah Pasha (Hafizahullah)
It is not permissible.
Abdullah ibn Mas'ud (رضي الله عنه) narrated that the Messenger of Allah (ﷺ) said:
"Whoever goes to a soothsayer or a fortune-teller and believes in what he says, has disbelieved in what was revealed to Muhammad (ﷺ)."
This narration has been reported by Imam al-Tabarani in "Al-Kabir", as well as by Imam al-Tirmidhi and Abu Ya'la with a reliable chain of transmission. The narrators of this Hadith are trustworthy, and these words are from al-Tabarani.
Is it permissible for me to visit a sorcerer to seek treatment for magic performed on me?
Answer:

Abdullah ibn Mas'ud (رضي الله عنه) narrated that the Messenger of Allah (ﷺ) said:
"Whoever goes to a soothsayer or a fortune-teller and believes in what he says, has disbelieved in what was revealed to Muhammad (ﷺ)."
This narration has been reported by Imam al-Tabarani in "Al-Kabir", as well as by Imam al-Tirmidhi and Abu Ya'la with a reliable chain of transmission. The narrators of this Hadith are trustworthy, and these words are from al-Tabarani.