The Shams al-Ma'arif al-Kubra β "The Greater Sun of Knowledge" β is a sprawling compendium of Islamic esoteric science attributed to Ahmad ibn Ali al-Buni, a Sufi mystic who lived and died in the early 13th century (d. c.1225 CE) in what is now Algeria and Egypt. It is, by volume, one of the largest single works of occult literature to survive from the medieval Islamic world, and unlike many grimoires that circulated in secrecy, it became β and remains β genuinely widespread across the Muslim-majority world.
The text is organised as a vast reference manual rather than a linear treatise. It moves between systematic discussions of the mystical properties of individual Arabic letters, tables of numerical correspondences, the ninety-nine names of God and their invocatory uses, detailed magic squares (awfaq) for specific purposes, and instructions concerning jinn, angels and other unseen entities. Two broad versions circulate today β a shorter al-Sughra ("Lesser") and the much longer al-Kubra ("Greater") β and scholars agree that significant material was added to both after al-Buni's death, sometimes centuries later.
What makes the work distinct from Western grimoires of a similar function is its foundation in specifically Islamic theology. Its power is not drawn from pagan deities or generic spirits but from the names and attributes of God as understood in Islamic tradition, filtered through the Sufi conviction that the Arabic language itself β as the language of divine revelation β carries metaphysical weight down to the level of the individual letter.
This is also precisely why the work is so divisive. Ilm al-huruf, the science of letters, has a long and respected pedigree within Sufism as a contemplative discipline. But the Shams al-Ma'arif pushes that discipline toward operative magic β using the names of God to compel outcomes in the world β which many Islamic scholars regard as a serious theological transgression rather than mysticism.