The Holy Prophet (S) says...
The Holy Prophet (S) says: “If a person goes to a magician, a diviner or a liar and testifies to the truth of whatever he says, he becomes an infidel according to all the books revealed by Allah.” ^5 Sorcery is punishable by death A Muslim who indulges in magic and does not repent is punished by death. An infidel guilty of sorcery must not be killed. He should be punished according to the decree of a just jurist (Qazi) and his penalty is at the discretion of the Qazi.
According to a tradition of Imam as-Sadiq (a.s.): “The sorcerer must be given a single blow of the sword on his head.” ^6 “If two just witnesses testify, it is permissible to kill him.” ^7 Imam (a.s.) also said, that the Holy Prophet (S) ordered, “The Muslim sorcerer must be killed and the infidel magician…