Definition of magic:
1) Magic is a knot or spell that has effects on the heart and body, It causes the heart or body to become sick, it can kill a person, it separates a man and his wife, and destroys family ties.
2) It is an incantation, knot, spell, and statement that are used in speeches, written or in actions that have an effect on the body, heart or intellect of a person without having direct contact with that person. It is a reality that kills, causes sickness, or prevents relationships (sexual) between a man and his wife, causes separation between them, or between families, places anger between families or friends, and causes a person to love those whom he hates in order to have a relationship and to be a source of spreading destruction.
Magic and its existence is confirmed by the Qur’an and Sunnah and is agreed upon by the scholars. It is a reality and a truth, and it affects a person only by Allah’s will. There is a consensus among the scholars of Tafseer that Surah Al-Falaq was revealed because of Habeebbin Asum who did magic on the Prophet (saws)
Magic is an art that requires skill and proficiency from the one who performs it. It is a type of knowledge that has a foundation, methodology and principles. However, learning it is not permissible and it is kufr (disbelief) because it cannot be learned or practiced without requesting the help of Shaytan, worshipping him, and using forbidden and unlawful things. So it is kufr to learn or practice it.
Imam Ibn Hajar (rahimuhullah) said: ” Magic is disbelief and learning it is kufr.” Fath ul Bari 10/195
Imam An-Nawawi (rahimuhullah) said: ” The knowledge of magic is forbidden and it is among the major sins.” Fatawa Ibn Baz 2/384
The Prophet (saws) included it among the major sins that destroy mankind and needs to be kept away from.
Ibn Qudaamah said: ” teaching and learning magic is forbidden and there is no difference on the issue by the scholars.” Al-Mughnee 8/151