This is another article in the chapter Enormities from the classical manual on Sharia called Reliance of the Traveller. The articles are posted one by one in the order they are given in the book.
p3.1 Sorcery is an enormity because the sorcerer must necessarily disbelieve (dis: x.136), and the accursed Devil has no other motive for teaching a person witchcraft than that he might thereby ascribe associates to Allah (shirk).
p3.2 Allah Most High says:
(1) “A sorcerer will never prosper wherever he goes” (Koran 20:69).
(2) ” … But the devils disbelieved, teaching people sorcery” (Koran 2:102).
And Allah Most High says, concerning Harut and Marut,
(3) “The two do not teach anyone before telling them, ‘We are only a temptation, so be not unbelievers,’ but they learn from these two that which they use to separate a man from his wife” (Koran 2:102).