Pages from a manuscript dated 1425 of a work attributed to Aḥmad al-Būnī on the divine names, letter science, and talismanic diagrams. Khalili Collections, MSS 300; image licensed CC BY-SA 3.0 IGO via Wikimedia Commons.
Shams al-Maʿārif is one of the most famous—and most misunderstood—books in the history of Islamic esotericism. Online it is frequently introduced as a single forbidden grimoire, a handbook for commanding jinn, or an unchanged medieval book written in one moment by the North African mystic Aḥmad al-Būnī. Each of those descriptions contains a fragment of a much larger story, but none is a reliable guide to the surviving evidence. The history of Shams al-Maʿārif wa-Laṭāʾif al-ʿAwārif, “The Sun of Gnosis and the Subtleties of Higher Knowledge,” is instead a history of manuscripts, teachers, devotional disciplines, number symbolism, Qurʾanic language, magic squares, the divine names, letter mysticism, talismanic practice, and centuries of textual expansion.
That complexity matters because the most widely circulated modern form of the work is not simply identical with what al-Būnī himself taught in the early thirteenth century. Manuscript research by Noah Gardiner has shown that the large compilation commonly called Shams al-Maʿārif al-Kubrā took shape over a long period and that important portions of the familiar text belong to later stages of transmission. Earlier Būnian writings can be connected more securely to al-Būnī, while the expanded Kubrā reflects the growth of a tradition around his name. This is not a minor bibliographical correction. It changes how we understand the book, its author, its readers, and the place of occult sciences within Islamic intellectual history.
The better question, therefore, is not “What is the forbidden book of al-Būnī?” but “How did a body of teachings about letters, divine names, numbers, prayer, cosmic correspondences, and talismanic forms become the work later readers knew as Shams al-Maʿārif?” Answering that question takes us from thirteenth-century North Africa and Cairo to Mamluk libraries, Ottoman collections, Moroccan courts, printed editions, modern anxieties about magic, and finally the internet, where the title has acquired a mythology almost as influential as the manuscripts themselves.
Aḥmad al-Būnī: the historical figure behind the legend
Abū al-ʿAbbās Aḥmad ibn ʿAlī ibn Yūsuf al-Būnī died in 622 AH/1225 CE. His nisba, al-Būnī, connects him with Būna, the North African city known today as Annaba in Algeria. Older descriptions often present him simply as “an Arab magician,” but that label obscures the religious and intellectual environment in which his writings developed. The manuscript record places him within a world of Sufism, esoteric exegesis, the science of letters, sacred names, transmitted prayers, cosmology, and disciplines of spiritual knowledge. His reputation as a master of occult sciences grew enormously after his death, but the historical al-Būnī was not merely the fictional sorcerer created by later popular imagination.
Gardiner’s study of hundreds of manuscripts argues that al-Būnī should be situated among esotericist Sufis who moved from the Islamic West toward Egypt and the eastern Mediterranean around the turn of the thirteenth century. His writings circulated among restricted communities of learned readers before expanding into broader intellectual and courtly environments. This is important because secrecy in such a setting did not necessarily mean the modern idea of a commercially “banned book.” It could mean controlled transmission, discipline under teachers, concern about misuse, the protection of specialized knowledge, or the conviction that powerful symbolic systems should not be separated from ethical and religious formation.
The phrase “occult sciences” can itself mislead if it is read only through modern Western categories. Medieval Arabic scholarly culture included fields such as astrology, alchemy, geomancy, the interpretation of dreams, talismanic sciences, the properties of letters and names, and mathematical or cosmological correspondences. Their boundaries with philosophy, medicine, devotional practice, natural science, and theology were debated rather than fixed. Some Muslim scholars condemned particular forms of these practices; others classified, restricted, reinterpreted, or cautiously incorporated them. Al-Būnī belonged to this contested intellectual landscape.
His corpus is also larger and less stable than a modern author’s bibliography. Many works were copied under his name, and later scribes, compilers, and readers could rearrange, expand, excerpt, or combine materials. The prestige of a famous name encouraged attribution. As a result, historians cannot treat every printed page carrying “al-Būnī” as direct evidence for what he personally wrote. The manuscript tradition must be studied witness by witness.
There was never just one Shams al-Maʿārif
The popular image of Shams al-Maʿārif assumes a single book with one stable text. The surviving evidence tells a different story. The Max Planck Institute for the History of Science’s Islamic Scientific Manuscripts Initiative records dozens of manuscript witnesses under the title Kitāb Shams al-Maʿārif wa-Laṭāʾif al-ʿAwārif. Individual copies vary in date, extent, contents, arrangement, and relation to other Būnian works. A British Library witness, Or. 4326, is recorded as copied in 651 AH/1253 CE, only a few decades after al-Būnī’s death. A Princeton manuscript, Garrett no. 258Y, is dated 1468 and preserves 133 leaves. Other witnesses survive in Paris, Berlin, Cairo, St. Petersburg, Alexandria, Birmingham, and many additional collections.
That geographical spread is evidence of success, but it also created textual complexity. A manuscript title does not guarantee that every copy transmits the same textual layer. Titles could be reused; shorter and longer forms could coexist; independent treatises could be incorporated into compilations; and later readers could understand an expanded corpus as the authoritative form of an earlier master’s teaching.
The distinction between forms often described as Shams al-Maʿārif al-Ṣughrā, “the Lesser Sun of Gnosis,” and Shams al-Maʿārif al-Kubrā, “the Greater Sun of Gnosis,” should therefore be approached historically rather than as if al-Būnī had necessarily issued two modern editions himself. Gardiner’s manuscript research is especially significant here. He argues that the large Kubrā through which al-Būnī became most famous is in substantial ways a product of later compilation, with its familiar form emerging centuries after the author’s lifetime. He also identified transmission claims in the expanded work that appear to have been borrowed from the writings of the later scholar ʿAbd al-Raḥmān al-Bisṭāmī.
This does not make the Kubrā “fake” in a simple sense. It makes it a historical artifact of reception. Medieval and early modern textual traditions often grew by commentary, compilation, interpolation, rearrangement, and attribution. A later Shams can still tell us a great deal about Islamic occult culture—just not always about the exact teachings of al-Būnī in 1225. The correct historical question is which layer, copied when, in what manuscript, for what readership, and under what authority.
This distinction resembles problems found elsewhere in the study of magical literature. SecretMagic readers who have explored the Arabic and Latin history of the Picatrix will recognize the danger of treating a famous later title as if it preserved a single timeless object. The same principle applies to Shams al-Maʿārif: transmission is part of the meaning.
What the title means
The Arabic title Shams al-Maʿārif wa-Laṭāʾif al-ʿAwārif is difficult to reproduce elegantly in English. Shams means “sun.” Maʿārif is the plural of maʿrifa, a word associated with knowledge or gnosis, especially knowledge with experiential or spiritual depth. Laṭāʾif suggests subtleties, delicate realities, or refined points, while ʿawārif evokes gifts or higher forms of knowledge. English translations such as “The Sun of Knowledge and the Subtleties of Gnosis” capture only part of the resonance.
The title itself signals that the work is not framed merely as a collection of tricks. Knowledge is central. The systems associated with al-Būnī seek to read correspondences between divine names, letters, numbers, Qurʾanic passages, cosmological levels, times, and material forms. Whether a modern reader interprets those correspondences devotionally, historically, psychologically, mathematically, or skeptically, they belong to an intellectual architecture rather than to a random catalogue of supernatural recipes.
The science of letters: ʿilm al-ḥurūf
At the heart of Būnian esotericism lies ʿilm al-ḥurūf, the “science of letters.” Arabic letters are not treated only as neutral marks for recording speech. They can be examined as shapes, sounds, numerical values, components of sacred names, and elements within patterned systems of correspondence. In Islamic thought more broadly, letters had already acquired rich philosophical, linguistic, mystical, and cosmological associations. The Qurʾan itself begins several surahs with isolated letters whose exact meaning became a major subject of interpretation. Sufi and esoteric writers could therefore approach letters as signs whose significance exceeded ordinary lexical meaning.
Arabic uses an older numerical ordering of the alphabet, often called the abjad system, in which letters possess numerical values. Alif corresponds to 1, bāʾ to 2, jīm to 3, dāl to 4, and so on through larger units. This allows words and names to be treated numerically without replacing their linguistic identity. A sacred name can be read as a sequence of letters, a sound, a semantic expression, and a numerical total at the same time.
It is tempting to compare this directly with Hebrew gematria, Greek isopsephy, or later European numerological systems. Comparison can be useful, but it should not erase local histories. The Arabic science of letters developed within its own networks of Qurʾanic interpretation, Sufi cosmology, philosophy, talismanic practice, and mathematical culture. Similar techniques do not prove a single origin, and later systems could borrow from several traditions at once.
For al-Būnī and his readers, letters could be classified through properties such as elemental associations, numerical rank, phonetic or graphic characteristics, and their positions within sacred names. Tables organize these relations. Diagrams make them visible. A reader encounters not simply prose but a visual technology of knowledge: grids, letter arrays, numerical arrangements, circles, and structured combinations. The page becomes an instrument for thinking.
An Egyptian paper amulet dated approximately 1000–1250, combining Arabic sacred text with a lettered grid. Los Angeles County Museum of Art, M.2002.1.371; public-domain image via Wikimedia Commons. The object is not a page of Shams al-Maʿārif, but it illustrates the wider medieval material culture in which sacred text and structured grids could function together.
The divine names: devotion, language, and esoteric power
A second central theme is the al-asmāʾ al-ḥusnā, the “Most Beautiful Names” of God, conventionally enumerated as ninety-nine. In ordinary Islamic devotion, divine names such as al-Raḥmān, “the Compassionate,” al-Ḥakīm, “the Wise,” or al-ʿAlīm, “the Knowing,” are objects of prayer, remembrance, theology, and ethical reflection. Būnian literature participates in that sacred vocabulary while also developing complex correspondences around individual names.
The Khalili Collections preserve a manuscript dated 1425 described as al-Būnī’s treatise on the magical uses of the ninety-nine names. Its six sections combine discussion of the names with magic squares, talismanic diagrams, Qurʾanic verses, and alphabets. The catalogue records applications ranging from protection during travel to concerns about illness and danger. Whatever modern terminology we use for such practices, their religious language is unmistakable. Qurʾan, divine names, prayer, number, and diagram inhabit the same artifact.
This is one reason the simple opposition “religion versus magic” performs badly here. Medieval Muslim critics certainly could distinguish legitimate prayer from condemned sorcery, and legal or theological boundaries mattered. Yet historical objects do not always fit modern categorical boxes. A diagram containing divine names could be devotional, protective, talismanic, mathematical, or several of those at once depending on context. A manuscript reader might understand the efficacy of a name through divine permission rather than through an autonomous magical force.
That theological framing is crucial. The Būnian tradition does not generally imagine letters and names as powers independent of God. Rather, their significance is embedded in a universe whose order ultimately depends on God. The danger, from the perspective of critics, was that technical manipulation of sacred language might cross into prohibited attempts at control, uncertain spirit practices, or claims to secret power. The same techniques that an adherent could describe as a science of divine signs might be condemned by an opponent as illicit magic.
Magic squares: mathematics turned into sacred pattern
Among the most visually striking features of Būnian manuscripts are number and letter squares, commonly called awfāq. A magic square is an arrangement in which values are organized according to a deliberate mathematical structure, often producing equal sums across rows, columns, and sometimes diagonals. Such squares have a long history across several civilizations. In the Islamicate world they became part of mathematical recreation, occult theory, talismanic practice, and material culture.
In Būnian contexts, a square could be much more than a numerical puzzle. Letters may replace or accompany numbers. The numerical value of a divine name can shape the arrangement. A square can be connected with a Qurʾanic verse, a planet, a desired quality, or a cosmological correspondence. A grid therefore acts as a bridge between abstract number and sacred language.
The important point is not to flatten all squares into one formula. Manuscripts show varied constructions. Some are arithmetically transparent. Others integrate words or letter sequences. Still others are embedded in larger diagrams. Later readers sometimes associated particular square orders with planets, days, or other celestial properties. Similar developments are visible in Latin and Renaissance occultism, where planetary magic squares became famous through writers such as Heinrich Cornelius Agrippa. SecretMagic’s study of Agrippa’s three worlds of occult philosophy provides a useful comparison, but the Arabic history should not be treated as a mere preface to Europe. It had its own centuries of development, readership, and religious debates.
A square also makes esoteric knowledge portable. Once written on paper, metal, textile, ceramic, or another support, a mathematical relation becomes an object. This transformation from concept to artifact is fundamental to the history of talismans. The user need not continuously recalculate the underlying system; the patterned form can be carried, displayed, folded, worn, buried, or incorporated into another object.
From page to object: amulets and talismans
Islamic talismanic culture cannot be reduced to al-Būnī, but Būnian writings became an important part of its learned textual history. Surviving objects demonstrate how Qurʾanic passages, divine names, grids, numerals, prayers, and symbolic figures moved beyond books.
A medieval Egyptian paper amulet now in the Los Angeles County Museum of Art, dated approximately 1000–1250, preserves vocalized Arabic text and a structured grid. It predates or overlaps the lifetime of al-Būnī and should not be described as evidence that its maker read the Shams. Its significance is comparative. It shows that the conjunction of sacred writing and patterned numerical or letter forms belonged to a broader material environment. Būnian literature systematized and transmitted techniques that readers could understand within an already rich culture of written protection.
Later objects extend the same principle. The Khalili Collections preserve talismanic charts, bowls, and manuscript pages in which Qurʾanic verses and the divine names are combined with geometric or numerical organization. A sixteenth-century Deccan “magic bowl,” for example, carries Qurʾanic inscriptions, invocations of divine names, prayers of protection, and magic squares. This is not evidence of a single uniform “Islamic magic.” It is evidence that sacred text and patterned form could be materially joined across regions and centuries.
Such objects also complicate the common modern idea that occult knowledge lives mainly in secret books. The book is only one stage. Knowledge moves through copying, recitation, diagramming, inscription, fabrication, possession, and use. A manuscript recipe can become a wearable object; a divine name can become a numerical arrangement; a cosmological theory can become a diagram small enough to carry.
Prayer and technical knowledge are intertwined
Modern readers often separate prayer from “technique.” In the Būnian tradition the separation is much less clean. Prayers, divine names, Qurʾanic language, ritual purity, numbers, timing, diagrams, and cosmology can belong to the same discipline. This does not mean every practice attributed to al-Būnī was universally accepted as orthodox. It means that the historical actors themselves could frame esoteric efficacy through devotional and theological concepts.
The longest form of Shams al-Maʿārif al-Kubrā, as represented by a nineteenth-century Moroccan manuscript in the Khalili Collections, consists of forty chapters. The surviving volume MSS 556 contains the end of the work, including a long chapter on the divine names and a final chapter related to prayers and invocations. Its diagrams coexist with formal religious language. The colophon also records chains of authorities for relevant forms of knowledge, including the science of letter-numerals. Such chains matter because they present esoteric knowledge as transmitted learning rather than anonymous superstition.
At the same time, historians must treat those chains critically. Gardiner has demonstrated that some transmission lines in the expanded Kubrā cannot simply be accepted as al-Būnī’s own. Later compilers could strengthen a text’s authority by embedding it within prestigious lineages. The existence of a chain is historically meaningful even when the chain is not historically reliable: it shows what later readers believed legitimate knowledge should look like.
Why secrecy mattered
Secrecy is one of the defining themes of esoteric literature, but it does not have one meaning. A modern reader may imagine secrecy as evidence that a book contains criminal or demonic material. Medieval learned secrecy was more varied. Knowledge could be restricted because it was considered spiritually dangerous, socially disruptive, easy to misuse, intellectually advanced, or simply inappropriate for the unprepared.
Gardiner’s reconstruction of early Būnian readership emphasizes closed or selective circles of learned Sufis. Manuscript transmission, ownership notes, and certificates provide traces of how texts moved. They suggest communities rather than solitary sorcerers. People copied books, taught students, certified transmissions, collected manuscripts, and placed them in libraries.
By the fourteenth and fifteenth centuries Būnian works circulated more widely. Gardiner’s dissertation argues that by the Mamluk period they could be found among influential scholars, administrators, and elite circles. This expansion did not erase controversy. It shows that condemnation and circulation could coexist. A text may be criticized precisely because it is read.
The later fame of Shams al-Maʿārif intensified that paradox. The title became shorthand for dangerous knowledge while copies continued to be produced. The more controversial the book became, the more its name accumulated cultural power. This dynamic still shapes internet discussion today.
The forty-chapter Shams al-Maʿārif al-Kubrā
The large form commonly printed in the modern period is often described as a forty-chapter compendium. It brings together materials on letters, numbers, divine names, Qurʾanic passages, magic squares, talismanic constructions, cosmological correspondences, prayers, invocations, and related occult disciplines. Readers encountering such an edition may assume that al-Būnī sat down and composed those forty chapters as a unified book. Manuscript history makes that assumption unsafe.
The Khalili manuscript MSS 556 is especially useful because it gives us a concrete, datable witness: copied in Marrakesh in 1868 for the future Moroccan sultan Ḥasan I. Its existence demonstrates elite nineteenth-century interest in the expanded work. Its material beauty—ink, gold, opaque watercolor, quality paper, leather binding—also challenges the stereotype of the grimoire as a furtive object existing only at the margins of respectable culture.
Final folios from a Moroccan manuscript of Shams al-Maʿārif al-Kubrā, copied in Marrakesh in 1868 for the future Sultan Ḥasan I. Khalili Collections, MSS 556; image licensed CC BY-SA 3.0 IGO via Wikimedia Commons.
Equally important is the much earlier evidence. The Max Planck ISMI database records a 1253 British Library witness, while other medieval copies attest the title across subsequent centuries. The historian therefore has to distinguish the existence of an early Shams tradition from the later construction of the huge Kubrā. There is continuity, but not identity.
Al-Būnī and the limits of the word “magic”
Calling al-Būnī a “magician” is not entirely wrong, especially if “magic” is used as a historical category for practices involving talismans, occult correspondences, letter-number operations, and attempts to obtain extraordinary effects. Yet the term becomes distorting when it suggests that his work stood outside religion or opposed Islam.
His texts use Islamic sacred language at every level. The divine names are central. Qurʾanic verses are central. Prayer is central. Cosmology is theocentric. The question was not whether his writings were Islamic in vocabulary; the debates concerned what kinds of knowledge and operation were legitimate within Islam.
Medieval Muslim scholars offered different classifications. Some forms of talismanic or letter science might be interpreted through natural causation, astral influence, mathematical harmony, spiritual agency, or divine permission. Other practices could be rejected as siḥr, a morally charged category commonly translated as sorcery or magic. The same object could be evaluated differently by different jurists, theologians, Sufis, philosophers, physicians, or users.
This contested boundary is visible throughout the history of esotericism. The Greek Magical Papyri, for example, preserve ritual texts in which traditional divine names, temple practices, new syncretic formulas, healing, divination, and coercive rites coexist. Historians do not understand Roman Egypt by forcing every practice into a single timeless category. The same caution should guide the study of Islamic occult sciences.
Cosmology: correspondence rather than chaos
To a casual viewer, Būnian diagrams can look like arbitrary collections of strange signs. Their logic becomes more visible when placed within medieval cosmologies of correspondence. Premodern scholars often imagined the universe as a hierarchy whose levels reflected one another. Planets, elements, letters, numbers, times, bodily conditions, colors, scents, directions, and spiritual beings could be linked through structured sympathies.
Such thinking was not unique to Islamic culture. Late antique Platonism, Hermetic literature, astrology, Jewish esotericism, Christian ritual traditions, and Indian and Iranian sciences all developed forms of correspondence. The Islamicate world inherited, translated, criticized, and transformed many intellectual currents while also generating new systems from Qurʾanic and Arabic linguistic materials.
Al-Būnī’s letter science is distinctive because Arabic sacred language itself becomes cosmological data. The alphabet is not merely mapped onto a foreign system; the letters of revelation, the names of God, and the numerical values built into Arabic writing become the raw material of speculation. This is why reducing Shams al-Maʿārif to “a jinn book” misses so much of what occupies its pages.
What about jinn?
Jinn are real participants in Islamic cosmology as represented in the Qurʾan and later religious literature. They also appear in magical and talismanic traditions. Modern popular culture, however, has allowed the jinn theme to swallow the entire identity of Shams al-Maʿārif. Online summaries frequently claim that the book’s primary purpose is summoning demons or that simply reading it triggers supernatural attack.
The manuscript evidence supports a more careful description. Spirit-related materials belong to the broader tradition, but the book’s intellectual world is far larger: divine names, letters, numbers, grids, Qurʾanic passages, prayer, cosmology, talismanic forms, and chains of transmission are all essential. Even where spiritual beings are discussed, the categories are not identical with the Christian demonologies familiar from European grimoires.
The English word “demon” can be especially misleading. Arabic sources distinguish jinn, devils, angels, spiritual beings, and other categories in ways that do not map neatly onto one European taxonomy. Translating every nonhuman entity as a demon creates a false theology. A responsible history therefore preserves the original distinctions where possible and avoids sensational generalization.
Claims that a reader will be harmed merely by seeing the text belong to modern folklore unless supported by specific historical evidence. Manuscripts have been copied, catalogued, conserved, photographed, and studied by librarians and historians. Their controversial reputation is itself a legitimate subject of study, but fear should not replace source criticism.
From manuscript authority to print culture
The transition from manuscript to print changed Shams al-Maʿārif profoundly. A manuscript culture naturally produces local variation. Scribes select exemplars, introduce corrections or errors, add notes, reorganize materials, and preserve distinctive diagrams. Ownership histories and transmission certificates attach a copy to particular people and places. Print creates a different kind of authority: thousands of readers can encounter the same arrangement, and a late compilation can begin to look like the original text simply because it becomes the standard edition.
This is one of Gardiner’s most important methodological points. Scholars who relied primarily on modern printed editions inherited the textual decisions of late transmitters. Without systematic comparison of manuscripts, it was easy to project the expanded Kubrā backward onto al-Būnī himself.
A widely digitized Arabic printed edition preserved by McGill University Library and the Internet Archive, now also hosted on Wikimedia Commons, illustrates the modern afterlife of the work. Its accessibility is valuable for studying reception, but a print from the modern period should never be treated automatically as a transparent window into the thirteenth century. Printed arrangement, appended texts, spelling, diagrams, and attributions need their own bibliographical history.
The same warning applies to translations. Any translation chooses how to render technical vocabulary, divine names, letter symbolism, and ambiguous ritual language. A translator who assumes in advance that every term is “black magic” will produce a different book from one who recognizes the text’s Sufi and devotional registers. Translation is interpretation.
The manuscript as evidence
For esoteric history, manuscripts are not merely containers for words. Their physical features tell stories. Script can suggest region and date. Paper may have watermarks. Colophons can identify scribes, patrons, owners, or places of copying. Marginal notes reveal how readers reacted. Diagrams may be corrected or elaborated. Missing leaves can change the apparent structure of a work. Binding can show later reuse.
The 1868 Khalili Shams manuscript, for example, is written in Maghribi script and was produced in Marrakesh. Its colophon states that the copy was made for a figure who became Sultan Ḥasan I of Morocco. That single fact transforms our picture of readership. The text was not only a secret curiosity of anonymous practitioners; at least one lavish copy was connected to royal culture.
The 1425 Khalili manuscript of the divine names offers a different window. It preserves numerous diagrams and a text organized around sacred names. Because it predates the final stabilization of the expanded Kubrā, it can help historians reconstruct the earlier Būnian corpus. It also confirms that systems now associated with the Shams circulated in distinct works.
This is why source verification is essential. SecretMagic’s guide to researching occult history online emphasizes shelfmarks, catalogue records, manuscript dates, and provenance. Shams al-Maʿārif is an ideal case study in why those habits matter. A viral image may be genuine but misdated; an authentic page may come from a later copy; a translated quotation may belong to a modern edition rather than a medieval witness.
Al-Būnī’s readers in the Mamluk world
The history of readership is as significant as the history of authorship. Gardiner’s research reconstructs the movement of Būnian texts through Mamluk-era networks. Early circulation appears to have been relatively selective, but by the fourteenth and fifteenth centuries the works reached wider scholarly and administrative communities. The growing number of manuscript copies is itself evidence of demand.
This circulation complicates the idea that occult sciences were simply outside learned culture. Scholars could own controversial books without endorsing every practice in them. Libraries could preserve works for study. Courtly elites could be interested in astrology, talismans, alchemy, and letter sciences alongside jurisprudence, medicine, poetry, and mathematics. Intellectual life is rarely divided as cleanly as later textbooks suggest.
By the early modern period Būnian authority had expanded further. Works attributed to him circulated from North Africa to the Ottoman lands, Iran, Central Asia, and South Asia. Local traditions adapted his name and methods to their own contexts. This diffusion produced both continuity and transformation. The farther a corpus travels, the more important it becomes to distinguish historical al-Būnī from “Būnian” tradition.
Why attribution grew around famous names
Premodern esoteric literature frequently attracts prestigious authors. Solomon, Aristotle, Plato, Hermes, Apollonius of Tyana, and famous sages were credited with works written long after their deaths. In Islamic occult literature, al-Būnī himself eventually became such an authority. A text associated with him acquired credibility, mystery, and a place in a recognizable lineage.
This does not mean later attributions were always deliberate fraud. Scribal culture had looser concepts of authorship than modern copyright culture. A student’s elaboration could be understood as belonging to a master’s teaching. A compilation of authentic passages and later commentary might circulate under the best-known name attached to the tradition. A title could function as a genre label as much as an exact bibliographical identity.
Historians therefore use several kinds of evidence together: early manuscripts, internal references, vocabulary, citations in other authors, transmission certificates, ownership notes, and comparison among recensions. The question “Did al-Būnī write this?” often requires a probabilistic answer rather than a simple yes or no.
How the Shams became “the most dangerous book”
The modern mythology of Shams al-Maʿārif is a historical phenomenon in its own right. In Arabic-speaking popular culture, the title is often invoked as the archetypal dangerous book of magic. Stories circulate about possession, misfortune, forbidden rituals, and readers who regret opening it. English-language internet culture has amplified those narratives, frequently stripping away manuscript history and Islamic intellectual context.
Several forces encourage the transformation. First, the book genuinely contains occult and talismanic material, so the reputation is not invented from nothing. Second, religious condemnations of sorcery give the title moral weight. Third, its dense Arabic diagrams look mysterious to readers who cannot interpret them. Fourth, the rarity or censorship of particular editions in some places increases fascination. Finally, social media rewards dramatic claims far more than careful codicology.
The result is a feedback loop. The book is famous because it is feared, and it is feared because it is famous. A photographed magic square becomes evidence of terrifying power rather than evidence of a mathematical-symbolic tradition. A later spirit invocation is presented as the essence of a thirteenth-century author. Legends about reading the book replace study of the readers who actually owned and transmitted manuscripts.
A historical approach does not require dismissing religious concerns. Muslims who consider particular practices forbidden have their own theological reasons for doing so. Historians can respect those convictions while still separating doctrinal judgment from claims about authorship, date, or manuscript transmission. Saying that a text has been condemned is different from saying that every internet story about it is historically verified.
The problem with calling it “black magic”
“Black magic” is one of the least useful labels for Shams al-Maʿārif. The phrase carries a European moral dichotomy in which “white” magic is benevolent and “black” magic is malevolent, demonic, or forbidden. Islamic legal and theological vocabularies classify acts differently. Harmful sorcery, divination, talismans, astrology, prayer, Qurʾanic healing, spirit interaction, and letter science have each been debated through their own categories.
Moreover, many materials associated with al-Būnī are explicitly protective, devotional, or oriented toward knowledge rather than harm. That fact does not settle whether a jurist would permit them. It does make “black magic manual” descriptively inadequate.
The moral diversity inside occult literature is not unusual. European grimoires mix prayers, exorcisms, treasure hunting, healing, spirit conjuration, and coercive operations. The Sworn Book of Honorius seeks the vision of God while also preserving elaborate ritual technologies. Categories such as devotion, magic, mysticism, and science overlap in historically specific ways.
Comparing al-Būnī with Picatrix
Shams al-Maʿārif and Ghāyat al-Ḥakīm, known in Latin as the Picatrix, are often grouped together as famous books of Arabic magic. The comparison is useful only if their differences remain visible.
Ghāyat al-Ḥakīm is deeply invested in astral magic: planetary images, celestial timing, suffumigations, philosophical cosmology, and the construction of talismans under specific stellar conditions. Būnian literature gives exceptional prominence to Arabic letters, divine names, Qurʾanic language, numerical values, magic squares, prayers, and sacred correspondences. Both participate in broader Islamicate occult sciences, but they represent different configurations of knowledge.
Their transmission histories also differ. Ghāyat al-Ḥakīm was translated into Castilian and Latin and became a major European source. Shams al-Maʿārif remained primarily within Arabic and wider Islamicate manuscript cultures for centuries, even as Būnian techniques spread geographically. Modern English occult interest in al-Būnī is comparatively recent.
Studying both works side by side reveals how misleading the phrase “Arabic grimoire tradition” can be when used too broadly. One book may be organized around planets and images; another around letters and names; another around geomancy; another around prayer; another around medicine. “Magic” is a family resemblance, not a single intellectual program.
Letters, numbers, and the idea of a readable universe
The most intellectually interesting dimension of Būnian thought may be its conviction that the universe can be read. Letters are not arbitrary. Numbers are not empty quantities. Sacred names are not mere labels. The cosmos is structured, and disciplined knowledge can discover relationships among its levels.
This worldview makes a magic square more than a charm. It is a miniature model of order. A set of letters can mirror a sacred name; a numerical total can reveal a hidden relationship; a diagram can make invisible structure visible. The act of writing becomes both analysis and participation.
Modern readers need not accept the metaphysical assumptions to understand the intellectual attraction. Pattern recognition is powerful. Mathematics gives abstract relations precision. Calligraphy gives language visual presence. Sacred names give religious depth. When these are joined, a manuscript page becomes simultaneously textual, numerical, visual, and devotional.
This multidimensional quality also explains why poor digital transcriptions can damage the text. A plain text file may preserve words while losing spatial arrangement. A grid shifted by one cell is not the same grid. A diagram missing color distinctions may conceal hierarchy. For works like Shams al-Maʿārif, high-quality manuscript images are not decorative extras; they are primary evidence.
Regional afterlives: North Africa, Egypt, the Ottoman world, and beyond
The later Būnian tradition was not confined to a single center. North Africa remained important, and the 1868 Marrakesh manuscript shows a prestigious Moroccan context. Cairo, where Gardiner places important stages of early transmission, became a major center for the circulation of occult, devotional, scientific, and Sufi books. Ottoman libraries preserved copies of Būnian works, while manuscript catalogues also point to circulation farther east.
This movement matters because occult traditions change when they enter new scholarly ecologies. Local calligraphic styles, paper, book formats, devotional customs, courtly interests, and existing talismanic practices shape the copied object. A Maghribi manuscript and an Ottoman copy may carry related text but participate in different material cultures. A South Asian talismanic object may use divine names and magic squares familiar from Būnian literature without being a direct copy of Shams al-Maʿārif.
Historians therefore distinguish influence from identity. Shared forms—such as magic squares, Qurʾanic quotations, divine names, or letter numerals—can arise through broad cultural transmission rather than direct dependence on one book. Al-Būnī became a major authority, but not every Islamic talisman is “Būnian,” just as not every European planetary talisman comes directly from Agrippa.
The visual grammar of an esoteric page
A Būnian manuscript page asks to be read in more than one direction. Ordinary prose proceeds line by line, but a square invites horizontal and vertical inspection. A circular diagram creates a center and circumference. Marginal labels link components that may be spatially distant. Red ink can mark headings, cells, names, or instructions distinct from the black main text.
This visual grammar is part of the knowledge. A grid can demonstrate balance more efficiently than prose. A letter table can display permutations that would be tedious to describe sentence by sentence. A diagram can preserve relationships among categories simultaneously. In that sense, manuscripts of occult sciences resemble astronomical tables, medical schemata, genealogical trees, and mathematical diagrams: layout communicates argument.
The 1425 Khalili manuscript is especially revealing. Its facing pages show letter grids and intersecting schemes written in black and red. Even without performing any operation, a viewer can see that the system values ordered combination. The manuscript is trying to make relationships visible.
That visual order also challenges the stereotype of occult books as chaotic. Whatever one thinks of their metaphysics, many such works are obsessed with classification. They organize the cosmos into letters, numbers, names, ranks, times, and correspondences. Their ideal is not disorder but a hidden order more comprehensive than ordinary perception.
Ethics, legitimacy, and the danger of power
Esoteric authors frequently insist that knowledge requires moral preparation. Such claims can serve several functions. They restrict access. They protect a teacher’s authority. They frame the discipline as spiritual rather than merely instrumental. They also address a real ethical problem: techniques promising influence, protection, attraction, victory, or secret knowledge can be imagined as tools for selfish ends.
In Būnian tradition, devotional language helps solve this tension by placing power under divine sovereignty. A name of God is not supposed to be an independent machine. Yet the very possibility of technical application creates controversy. Critics can ask whether a practitioner is truly praying or attempting to compel outcomes through concealed mechanisms.
The historical record does not give one universal Muslim answer. Legal schools, theologians, Sufis, philosophers, and popular practitioners debated different acts. Modern readers should resist the urge to pronounce a single timeless verdict on behalf of all Islam. It is more accurate to identify the specific authority, period, and practice being discussed.
The same caution applies to modern spiritual appropriation. A diagram copied from the internet is separated from the language, theology, teachers, and manuscript context that once gave it meaning. Treating it as a generic “sigil” may erase its Islamic content. Historical respect begins by recognizing what tradition the object belongs to.
What modern scholarship has changed
Older scholarship often treated Islamic occult sciences as a marginal or embarrassing residue, something outside the “real” history of philosophy, science, or religion. That approach created blind spots. If historians ignore manuscripts because their contents are classified as superstition, they miss what educated readers actually copied, bought, taught, feared, and valued.
Gardiner’s work on al-Būnī is part of a broader scholarly correction. By examining hundreds of manuscripts and their paratexts, he showed that questions of occult knowledge are also questions of book history, social networks, authority, Sufism, censorship, elite culture, and intellectual transmission. The story of Shams al-Maʿārif is therefore not a niche curiosity. It belongs to the history of Islamic thought.
Institutional catalogues reinforce that conclusion. The Islamic Scientific Manuscripts Initiative records dozens of witnesses. Princeton preserves a fifteenth-century copy. The British Library holds an early witness. The Khalili Collections preserve both a fifteenth-century Būnian treatise and a lavish nineteenth-century Kubrā. McGill has digitized a later printed edition. These are not rumors about a lost book; they are material witnesses that can be described, dated, compared, and studied.
What can we securely say about al-Būnī?
Several conclusions are stronger than the internet mythology surrounding him.
- Al-Būnī was a real thirteenth-century North African Sufi and esoteric author who died in 1225.
- He wrote on the science of letters and names, and works associated with him circulated soon after his lifetime.
- An early Shams al-Maʿārif tradition existed, but the enormous Shams al-Maʿārif al-Kubrā familiar from later print culture contains substantial later development.
- His corpus gives major roles to the divine names, Arabic letters, numerical values, magic squares, Qurʾanic passages, prayer, cosmological correspondences, and talismanic forms.
- Būnian writings circulated among learned readers and eventually across a wide geographical area.
- Some later texts and transmission claims attributed to al-Būnī cannot be treated as securely his without manuscript comparison.
- The category “Islamic magic” is useful only when it remains attentive to theological debate, devotional language, material culture, and historical context.
These conclusions are less dramatic than claims about an accursed book, but they reveal something more interesting: how a sophisticated symbolic tradition could expand over centuries until the name of one author came to represent an entire field of secret knowledge.
Reading Shams al-Maʿārif responsibly today
A responsible modern reading begins with classification. Is the object a medieval manuscript, an early modern copy, a nineteenth-century compilation, a lithograph, a twentieth-century print, a translation, or an online transcription? Which recension does it represent? Does the page preserve the title, colophon, or shelfmark? Are the diagrams complete?
Next comes attribution. A passage printed under al-Būnī’s name should not automatically be introduced as “what al-Būnī wrote.” If scholars have identified later layers, say so. If the attribution is traditional but uncertain, say so. Precision is more valuable than certainty performed for effect.
Then comes vocabulary. Translate technical terms carefully. ʿIlm al-ḥurūf is more accurately “science of letters” than a sensational phrase such as “demonic alphabet magic.” Asmāʾ Allāh al-ḥusnā are the Most Beautiful Names of God, not merely “power words.” Awfāq can refer to structured squares and related arrangements. Jinn should not automatically become demons.
Finally, distinguish history from practice. A historical article can explain that manuscripts contain talismanic prescriptions without reproducing every operative instruction. This is especially appropriate when a tradition remains religiously sensitive or when modern readers may mistake a descriptive source for a guaranteed technique. The aim of scholarship is understanding, not theatrical reenactment.
Why the book still matters
Shams al-Maʿārif matters because it sits at the intersection of several histories that are too often studied separately. It belongs to the history of Sufism because al-Būnī’s authority and sacred language cannot be separated from mystical currents. It belongs to the history of mathematics because number and structured grids are central to its visual reasoning. It belongs to the history of the book because its identity changed through manuscript transmission and compilation. It belongs to religious history because divine names, Qurʾanic verses, prayer, and debates over legitimate practice define its world. It belongs to the history of magic because talismans, correspondences, and extraordinary efficacy are openly part of the tradition.
It also matters because it exposes a methodological problem that affects nearly all esoteric studies: famous titles become myths. Once a book is known as “the most dangerous,” “the oldest,” “the forbidden,” or “the ultimate grimoire,” the label begins to replace evidence. Historians have to reverse that process. They return to dated manuscripts, catalogues, physical objects, citations, and the social lives of readers.
When we do that, Shams al-Maʿārif becomes more—not less—interesting. The simple horror story disappears, but in its place appears a network stretching across six centuries: a North African Sufi, Cairo circles of esoteric learning, Mamluk readers, copied diagrams, divine-name treatises, magic squares, royal manuscripts, Ottoman libraries, Moroccan patrons, lithographic presses, modern editions, religious polemics, academic codicology, digital libraries, and global internet folklore.
Conclusion: the Sun of Gnosis is a manuscript tradition, not a single mythic book
The enduring fascination of Shams al-Maʿārif comes partly from its visual power. Grids, red ink, sacred names, unusual letter sequences, and complex diagrams look like the material language of secrecy. But the real secret of the book’s history is more ordinary and more profound: texts change because people copy them.
Aḥmad al-Būnī was a historical thirteenth-century author whose work on letters, names, numbers, and sacred correspondences became foundational for later Islamic occult sciences. Yet the huge Shams al-Maʿārif al-Kubrā familiar today is not a frozen artifact from his desk. It is the result of transmission, expansion, attribution, and reception. Later generations made al-Būnī larger than al-Būnī.
Recognizing that layered history does not diminish the tradition. It allows us to see the creativity of its transmitters and the diversity of its readers. The manuscript copied for a Moroccan prince, the fifteenth-century treatise on divine names, the early witness preserved in London, the printed Cairo volumes, and the modern digitized scans all belong to different moments. None should be allowed to impersonate all the others.
For students of esotericism, the lesson is durable. Never let a famous title do the work of a manuscript. Never let a modern category erase the vocabulary of the people who made the text. And never assume that the most sensational version of a story is the oldest one. Shams al-Maʿārif deserves to be studied not because it is supposedly cursed, but because it preserves one of the richest records we have of how sacred language, number, diagram, devotion, secrecy, and occult knowledge were woven together across the Islamic world.
Sources and References
- Noah Gardiner, “Forbidden Knowledge? Notes on the Production, Transmission, and Reception of the Major Works of Aḥmad al-Būnī,” Journal of Arabic and Islamic Studies 12 (2012), 81–143.
- Noah Daedalus Gardiner, Esotericism in a Manuscript Culture: Ahmad al-Buni and His Readers through the Mamluk Period, PhD dissertation, University of Michigan, 2014: University of Michigan Deep Blue.
- Islamic Scientific Manuscripts Initiative, Max Planck Institute for the History of Science, record for Kitāb Shams al-Maʿārif wa-Laṭāʾif al-ʿAwārif: ISMI text record and manuscript witnesses.
- Digital Scriptorium, Princeton University Islamic Manuscripts Garrett no. 258Y, Shams al-Maʿārif wa-Laṭāʾif al-ʿAwārif, dated 1468: catalogue record.
- Khalili Collections, MSS 300, Al-Buni’s Treatise on the Magical Uses of the Ninety-nine Names of God, dated 1425: collection record.
- Khalili Collections, MSS 556, Al-Buni’s Shams al-Ma‘arif al-Kubra, Marrakesh, dated 1868: collection record.
- Los Angeles County Museum of Art, M.2002.1.371, medieval Egyptian paper amulet with sacred text and a magic-square grid, reproduced via Wikimedia Commons under LACMA’s public-domain designation.
- McGill University Library / Wikimedia Commons, digitized historical edition of Shams al-Maʿārif al-Kubrā wa-Laṭāʾif al-ʿAwārif, public-domain scan.
