As a matter of fact, all divine religions prohibit sorcery and even prescribe harsh punishment for sorcerers given the serious harm they cause. Sorcery is seen as a major sin by such religions.
The Old Testament dispraises sorcery as a practice detestable to Allah. We read the following verses:
…or casts spells, or who is a medium or spiritist or who consults the dead. Anyone who does these things is detestable to the LORD; because of these same detestable practices the LORD your God will drive out those nations before you. (Deuteronomy 18:11-12)
Moreover, the Old Testament sentences sorcerers to death. We read the following verse: “Thou shalt not suffer a witch to live.” (Exodus 22:18)
The New Testament tells us that sorcerers will be thrown away in the Hell-fire. We read the following verse:
But the fearful, and unbelieving, and the abominable, and murderers, and whoremongers, and sorcerers, and idolaters, and all liars, shall have their part in the lake which burneth with fire and brimstone: which is the second death. (Revelation 21:8)
The practices of witchcraft and sorcery were regarded as sins by Christians that needed to be repented of, confessed, and forsaken. The Council of Paderborn in 785 explicitly outlawed the very belief in witches, and Charlemagne later confirmed the law. Among Eastern Christians belief in witchcraft was regarded as deisidaimonia—superstition—and by the 9th and 10th centuries in the West, belief in witchcraft had begun to be seen as heresy.
Prophet Muhammad prohibited sorcery and considered it a grave sin. Abu Hurairah reported that Prophet Muhammad said, “Keep away from the seven fatalities.” It was asked: “What are they, O Messenger of Allah?” He replied, “Associating anything with Allah in worship (i.e., committing an act of Shirk), sorcery, killing of one whom Allah has declared inviolable without a just cause, devouring the property of an orphan, the eating of usury (Riba), fleeing from the battlefield and accusing chaste believing women, who never even think of anything touching their chastity.” (Al-Bukhari & Muslim)
Prophet Muhammad stated that a believer in sorcery will not be admitted to Paradise. Abu Musa Al-Ash`ari reported that Prophet Muhammad said: “Three persons will not enter Paradise: a stubborn drunkard, one who severs family ties and one who believes in sorcery…” (Ahmad)
1- Sahih Al-Bukhari
2- Sahih Muslim
3- Musnad Al-Imam Ahmad
4- The Holy Bible (Visit biblegateway.com)