Classical period According to Tobias Nünlist, rather than condemning magic and occultism as whole, Muslim writers on the subject usually distinguished between licit and illicit magical practises. According to Henrik Bogdan, Gordan Djurdjevic, contrary to Western esotericism and occultism, there is no clear conflict between
orthodoxy and occultism in Islam. Traditionally, Islam distinguishes between magical miracles bestowed by God as a blessing, and demonic magic. Whether or not sorcery/magic is accessed by acts of piety or disobedience is often seen as an indicator whether sorcery/magic is licit or illicit.
Hadith allows the usage of magic for the purpose of healing as long as they do not contain acts of
shirk (lit. associating something [with God]; i.e. polytheism).
Tabasi (d. 1089) offered a wide range of rituals to perform sorcery, but also agreed that only magic in accordance with
sharia is permissible.
Ibn al-Nadim (932-995) -- a "bookish" pious Muslim, concedes the permissibility of white magic and but condemns the practice of black magic. He traces licit magic back to King
Solomon (the prophet
Sulaimān ibn Dāwūd in Islam) and illicit to
Iblis (leader of the devils in Islam). The licit magicians included exorcists. They obeyed Islamic law and invoked God's name. Illicit magicians or sorcerers, controlled by or controlling demons by deeds or offerings that were displeasing to God. According to Ibn Khaldūn,
Miracles (
karāmāt), belong to licit magic and are considered gifts of God and distinct from illicit magic (
siḥr): The difference between miracles and magic is this: a miracle is a divine power that arouses in the soul [the ability] to exercise influence. The [worker of miracles] is supported in his activity by the spirit of God. The sorcerer, on the other hand, does his work by himself and with the help of his own psychic power, and, under certain conditions, with the support of devils. The difference between the two concerns the idea, reality, and essence of the matter. Since the early stages of Islam, Muslim scholars from "multiple theological and legal schools" who disapproved of magic and sorcery did not necessarily considered magic to be evil or sinful, but rather nonsensical or deceptive.
Hanafi jurist
Abu Bakr al-Jaṣṣās, argued that if magic was actually real, it's practitioners would be rich and powerful rather than impoverished hustlers of common people in the marketplace. The Mu'tazilite rationalists held that magic and sorcery is mere image-making without reality.
Ibn Sina (c. 980–1037) and
Fakhr al-Din al-Razi (1149 or 1150–1209), describe magic as merely a tool with the outcome of an act of magic determining whether it is legitimate or not.
Contemporary period Criticism on the supernatural was adopted in
modern times.
Salafi scholars, such as
Muhammad Abduh,
Rashid Rida,
Muhammad Asad, and
Sayyid Qutb, reject magic and associated traditions, interpretating references to sorcery and witchcraft in a metaphorical way.
Muhammad ibn Abd al-Wahhab (1703–1792), founder of
Wahhabism, considered sorcery as one of the few sins where killing was a "divinely sanctioned punishment". 20th century scholar
Muhammad Nasiruddin al-Albani stated that those who have "the conviction that sorcery has effect of its own accord, and not because of God's decision and will", will not enter paradise. According to Ahmed Ferky Ibrahim, (professor of Islamic law at McGill University), while "capital punishment for magic is rooted in Islamic history", it was seldom applied historically. "When you read 16th- through 19th-century
Ottoman court records, for instance, you realize there was no
inquisition of magicians, no
witch hunts, as was the case in Christian Europe ...The frequent persecution of magicians is indeed a recent phenomenon". Modern Asharites and Maturidites usually argue against the rejection of magic and a distinction between the natural and supernatural in general. Adhering to
Occasionalism, there would be no restriction on God designing the natural law. God could deviate from the generally assumed order and bestow magical abilities on someone anytime and changing natural laws. Asserting that only God's will exists, they reject the dichotomy of supernatural and natural. In contemporary Shia Islam, the cleric Sayyid Abdul Husayn Dastghaib Shirazi, considers the ability to perform licit magic to happen because of great "piety and abstinence". The miracle worker must "invoking the name of God", is "the most righteous and knowledgeable person of his time", and "does not claim to be a prophet". == Divination ==