Prohibition of Magic
Allah, the Exalted, says:
"Sulaiman (Solomon) did not disbelieve, but the Shayatin (devils) disbelieved, teaching men magic.'' (2:102)
1793. Abu Hurairah (May Allah be pleased with him) said: The Prophet (PBUH) said, "Avoid the seven destructive things.'' It was asked: (by those present): "What are they, O Messenger of Allah?'' He replied, "Associating anyone or anything with Allah in worship; practising sorcery, killing of someone without a just cause whom Allah has forbidden, devouring the property of an orphan, eating of usury, fleeing from the battlefield and slandering chaste women who never even think of anything touching chastity and are good believers.''
[Al-Bukhari and Muslim].
Commentary: This Hadith has already appeared earlier. All the acts mentioned in it are unlawful. The teaching, learning and practising of magic are all unlawful, and Imam An-Nawawi has quoted this Hadith here to prove the prohibition of magic in Islam.