Prohibition of Magic

Imam Al-Nawawi’s Riyad-us-Saliheen
Chapter 362
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 (sallallaahu ’alayhi wa sallam) 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].