Sorcery
Sorcery is a major sin because the sorcerer must necessarily disbelieve and the accursed Devil has no other motive for teaching a person witchcraft than that he might thereby ascribe associates to Allah.
Allah, the Almighty, says, {Solomon did not disbelieve but Satan disbelieved, teaching men magic, and such things as came down at Babylon to the angels Harut and Marut. But neither of these taught anyone (such things) without saying, 'We are only for trial,' so do not blaspheme.' They learned from them the means to sow discord between man and wife. But they could not harm anyone except by Allah's permission. And they learned what harmed them, not what profited them. And they knew that the buyers of (magic) would have no share in the happiness of the Hereafter.} (AI- Baqarah: 102)
Thus, you might find some people who are astray delving in learning sorcery and thinking that it is just unlawful. Actually, they do not consider what they do as disbelief, but it is! They embark on learning all kinds of sorcery: Pure sorcery, increasing or decreasing the love between a man and a woman, making a man important and the like.
All of these practices are done by means of some unknown words, most of which lead to unbelief.
The penalty for a sorcerer is to be killed. This is because he is an unbeliever. The Prophet (pbuh) said, "Avoid the seven heinous sins.”1
And he mentioned sorcery.
"The penalty for a sorcerer is the sword.”2
Bijalah Ibn Abah related, 'Umar (may Allah be pleased with him) came to us one year before his death and said, "Kill every sorcerer (male or female).”3
Wahb Ibn Munabbih said, "I read in a book: 'Allah the Almighty says, 'There is no god but Me. He is not of Me who practices sorcery, or asks someone to practice with him. The one who foretells or the foretold, the one who seeks an omen or for whom an omen is sought.” 4