Deep into that darkness peering, long I stood
there wondering, fearing,
Doubting, dreaming dreams no mortals ever dared
to dream before.Footnote 1
Introduction
In 1951, the renowned historian of science Otto E. Neugebauer made an important observation that still holds significance for scholars of Islamic studies today. He urged historians of science to seriously study “wretched subjects”. Neugebauer warned that by dismissing certain texts as superstitious and irrelevant, we “destroy the very foundations of our studies: the recovery and study of the texts as they are, regardless of our own tastes and prejudices”.Footnote 2Neugebauer’s call is particularly relevant to ongoing debates about the boundaries of science, especially discussions about incorporating the study of occult practices, such as astrology, geomancy, numerology and lettrism, into the broader history and classification of science.Footnote 3
Over the last two decades, scholarship on occult sciences has moved beyond clichéd dismissals that reduce them to mere superstitions and overlook their relevance to Islamic studies. One branch of occult sciences that has garnered significant scholarly attention is lettrism (ʿilm al-ḥurūf).Footnote 4It gradually became associated with the science of Jafr (ʿilm al-jafr) in medieval Islam, a term derived from the name of a mysterious book called Jafr. This text as well as other works attributed to ʿAlī ibn Abī Ṭālib, such as Jāmiʿa and the Book of ʿAlī (Kitāb ʿAlī), have historically shaped his image as the principal source of esoteric, apocalyptic and occult knowledge.Footnote 5Consequently, the science of Jafr has often become synonymous with lettrism, which constitutes a prognostic, apocalyptic and metaphysical branch of occult sciences in medieval and modern Islamicate societies.Footnote 6
Various Sunni and Shiʿi occultists, such as Aḥmad al-Būnī (d. 1225), Muḥammad ibn Ṭalḥa (d. 1254), Sayyid Ḥusayn Akhlāṭī (d. 1397), Ibn Turka Iṣfahānī (d. 1432), ʿAbd al-Raḥmān al-Bisṭāmī (d. 1454) and Maḥmūd Dihdār (fl. 1576), wrote treatises on Jafr or incorporated it into their cosmological theories and practical grimoires. Today, lettrism is sometimes known as Jafr and is widely practised across the Islamic world, and its manuals are easily accessible on popular and social media, as well as in widely available Persian, Arabic, Urdu and Turkish texts.Footnote 7Despite Jafr’s rich and significant history among Muslims, there is still no dedicated study of its origins in Western scholarship, and much confusion remains regarding the work’s alleged authorship, content and particularly its broader role in early Shiʿi sources from the third to fifth centuries.Footnote 8To address this gap, this article examines the origins, development and significance of Jafr in early Shiʿi literature and contributes to the growing scholarship on occult sciences and esotericism in Islamic studies.Footnote 9It presents a historical and intellectual context for scholars interested in occult sciences, esotericism, Shiʿism and “wretched” academic subjects, which are often overlooked due to academic trends that dismiss the occult and esoteric as insignificant or absurd.Footnote 10
Jafr, which is often mentioned along with another book titled Jāmiʿa in Shiʿi sources, is part of a larger tradition in which various hidden, esoteric and apocalyptic books are attributed to the Prophet’s family, and these texts show their access to sacred knowledge that was passed down to them through the Prophet. Alongside these texts, Kitāb ʿAlī stands out. Some hadith describe it as the only complete copy of the Quran,Footnote 11while others portray it as a record of everything that will happen until the end of time. Before his passing, the Prophet entrusted this book to ʿAlī.Footnote 12Muṣḥaf Fāṭima is another such text in Shiʿi tradition, believed to have been dictated by an angel (often identified as Gabriel) to Fatima after the Prophet’s death. Unlike the Quran, this text contains no legal rulings but instead foretells political transformations as well as the destiny of Fatima’s descendants. It is said to contain not a single word from the Quran.Footnote 13These narratives are apocalyptic and prognostic, as they reveal the hidden knowledge of Shiʿi imams and forecast the future and ultimate destiny of humanity. Jafr, Jāmiʿa, Kitāb ʿAlī, Muṣḥaf Fāṭima and similar books are conduits for eschatological foresight, ultimate tribulations and the eventual triumph of divine justice. These books take on even greater significance in Shiʿi cosmology, as they affirm the rightful authority of Shiʿi imams and the injustices they have endured, wrongs that will be redressed in a messianic, eschatological and cosmological reckoning in the salvific future. The existence of these books reinforces the idea that Shiʿi imams are not simply historical individuals and figures, but the very truth and spirit of history.
Jafr, a pastoral term
The term jafr carries a range of meanings. It can refer to a young sheep or a goat that is weaned and typically slaughtered after 50 days or four months of age.Footnote 14Specifically, it denotes a young goat (maʿz), a ewe (shāʾ) or a sheep (ḍaʾn), which is slaughtered before reaching full maturity. The term can also apply to a young female goat that has not yet reached four months of age, when its sides are visibly spread (jafara janbāhu) and it has been weaned from its mother.Footnote 15Sometimes, jafr is also used to describe a young female sheep.Footnote 16It is also said that jafr is male, while jafra is female.Footnote 17In a more general sense, jafr may refer to a small lamb (al-ḥamal al-ṣaghīr). The plural forms are ajfār or jifār, and jafr can appear in verbal forms such as jafara, istajfara and tajaffara.Footnote 18
In another pastoral context, jafūr refers to the period when a male animal, such as a camel or horse, either ceases to mate altogetherFootnote 19or does so after sexual excess and exhaustion.Footnote 20This usage is related to terms such as ijtifār, ijfār and tajfīr, which also describe the cessation of breeding activity. For example, ajfara ʿan al-mirʾa means that a man has ceased engaging in sexual relations with a woman.Footnote 21Sometimes, ajfara is used to refer to giving up a certain habit or behaviour.Footnote 22Majfūr also refers to a large animal or one with an especially broad torso (jufra).Footnote 23There are other meanings as well. For example, the phrase jafara min al-maraḍ means recovering from illness.Footnote 24In other non-pastoral contexts, jafr can denote a well that has not been completely closed up,Footnote 25a young boyFootnote 26or, when spelled as jufra, a large circular piece of land.Footnote 27
Given this philological survey, jafr’s association with a book may have stemmed from the material upon which it was written. Since the term jafr denotes young sheep, goats, ewes or even camels, it is likely that the term originally denoted parchments made from their skins, which were presumed to be used as writing surfaces for the book of Jafr. Certain hadith in early Shiʿi literature support this interpretation, and assert that jafr was made from the skin of certain animals, such as a ewe (shāʾ), a camel (baʿīr),Footnote 28an ox (thawr),Footnote 29a goat (maʿz/māʿiz)Footnote 30or a sheep (ḍaʾn).Footnote 31It is also stated that jafr came from the skin of a ewe of moderate size – neither too large nor too small.Footnote 32Such associations between animal skins and prophetic knowledge might be traced back to ancient practices. In ancient Mesopotamia, for instance, sheep were already regarded as vessels of prophecy, and diviners analysed the internal organs of sacrificial sheep. The individual requesting an oracle would supply an unblemished animal. The diviner would then perform the sacrifice and seek answers from deities such as Marduk and Shamash by studying the organs, especially the liver and lungs, for any anomalies that would indicate favourable or unfavourable outcomes.Footnote 33In pre-Islamic Mesopotamia and the Near East, animal parts, especially the liver and shoulder blades, were used in divination practices. Scapulimancy, or divination based on the form of a sheep’s scapula (ʿilm al-katif), also became popular in early Islamic traditions, and it was the subject of some Arabic treatises credited to figures like Hermes.Footnote 34
The use of animal skins as writing surfaces parallels the long-standing Jewish practice of inscribing sacred texts on parchments made from kosher animals. Indeed, from ancient times, Jews copied the Torah onto parchments made from the skins of kosher animals and sewed the sheets together with sinews. This practice is illustrated by the Dead Sea Scrolls, which were also written on similar parchments in the eastern Mediterranean region.Footnote 35Before the advent of paper, the Sasanian and Byzantine empires relied on materials such as animal skins for writing, and Iranians reputedly copied the Avesta onto 12,000 skins.Footnote 36Early Islamic papyrus documents from Egypt were in the form of loose sheets. However, the pre-Islamic Sasanian administrators recorded information on codices made from animal skins, while Byzantine bureaucrats used papyrus rolls in Egypt and Syria.Footnote 37Amājūr al-Turkī, the governor of Damascus from 870 to 878, also commissioned a Quran manuscript in 30 volumes. Each volume contained approximately 200 parchment leaves. This process required the skins of roughly 300 sheep, which demonstrates the widespread use of sheepskin for sacred texts.Footnote 38The historical context shows that the term jafr in early Shiʿi tradition may have been influenced by the long-standing practice of using animal hides as writing surfaces for texts of great worth.
Red Jafr and white Jafr
In early Shiʿi literature, the red Jafr (al-jafr al-aḥmar) and the white Jafr (al-jafr al-abyaḍ) are mentioned together as a pair, and both have their own distinct functions and significance. The following two hadith, though similar in tone, provide complementary details about these two books, which shed light on their respective meanings and roles:
I [al-Ḥusayn ibn Abī al-ʿAlā] heard Abā ʿAbd Allāh [Jaʿfar al-Ṣādiq (d. 765)] say, “I possess the white Jafr (al-jafr al-abyaḍ).” When I inquired, “What does it contain?” he replied, “It includes the Psalms of David, the Torah of Moses, the Gospel of Jesus, the books (ṣuḥuf) of Abraham, guidelines on what is permissible and impermissible, and the book (muṣḥaf) of Fatima, which does not contain anything that is in the Quran. The white Jafr contains matters that make people dependent on us, but we are not dependent on anyone. It even details punishments such as lashing, half or a quarter of it, or even compensation for a scratch on the body. I also have the red Jafr (al-jafr al-aḥmar).” I asked, “What is it?” He answered, “It is a weapon, and it is used only for bloodshed; the owner kills all the opponents.”Footnote 39
Ghābir is the knowledge of whatever will happen, Mazbūr is the knowledge of whatever happened before, the scratching of the heart (al-nakt fī l-qulūb) is the inspiration (ilhām), the rapping on the ears (al-naqr fī l-asmāʿ) is the speech of the angels that we hear but we cannot see them, the red Jafr contains the prophetic weapon (silāḥ rasūl Allāh) that will not appear until the arrival of our resurrector (qāʾimunā) from the prophetic household (ahl al-bayt), the white Jafr contains the Torah of Moses, the Gospel of Jesus, the Psalms of David, and the primary books of God. The book of Fatima contains accounts of all events and also names of all who will rule until the resurrection, and Jāmiʿa is a book that is seventy cubits long measured by the Prophet himself, dictated by him, and written by ʿAlī with his hand. This book contains everything that people will need until the Resurrection, even the compensation of a scratch on the body or [the punishment of] lashing is in it.Footnote 40
The white Jafr is a comprehensive book, and only Shiʿi imams have access to it. It contains holy texts, such as the Psalms of David, the Torah of Moses, the Gospel of Jesus and the books of Abraham, and provides guidance on religious and legal matters, which exemplifies the imams’ superiority in both esoteric and exoteric issues. Additionally, the white Jafr contains prognostications and predictions about future events, including the names of rulers until the Resurrection and the anticipated arrival of the resurrector. In Twelver Shiʿi sources, this resurrector is identified as the Twelfth Shiʿi imam, al-Mahdī. The red Jafr, however, remains somewhat enigmatic. It is a prophetic weapon of unparalleled power with a clear apocalyptic dimension. Shiʿi imams have concealed this weapon, and it will be revealed by al-Mahdī, whose messianic return is believed to bring salvation and eradicate injustice around the world.Footnote 41
Although the exact nature of the red Jafr remains unclear, various hadith in early Shiʿi sources confirm that Shiʿi imams indeed inherited a collection of prophetic weapons.Footnote 42Some hadith make general references to these prophetic weapons. For example, it is reported that the fifth imam, Muḥammad al-Bāqir (d. 733), was asked whether ʿAlī ibn Abī Ṭālib had inherited any weapons from the Prophet, to which he responded affirmatively.Footnote 43In another hadith, ʿAlī informed his son al-Ḥasan that he had inherited the books (kutub) and the weapon of the Prophet. He explained that he was passing them on to al-Ḥasan, as instructed by the Prophet, and advised him to pass them on to his brother, al-Ḥusayn.Footnote 44This weapon has been passed down from one imam to the next. Muḥammad al-Bāqir also stated,
Before his death, ʿAlī ibn al-Ḥusayn brought out a casket or box and said, “O Muḥammad, carry this casket.” It was carried by four people. When he passed away, his brothers came claiming what was in the box and saying, “Give us our share of the casket.” He [Muḥammad al-Bāqir] replied, “By God, you have no share in it. If you had any share in it, it would not have been given to me.” Inside the casket were the weapons of the Messenger of God and his books.Footnote 45
The sixth Shiʿi imam, Jaʿfar al-Ṣādiq, is also said to have possessed the hidden prophetic weapon.Footnote 46Muḥammad ibn Fuḍayl, a companion of the eighth imam, ʿAlī ibn al-Riḍā (d. 818), recounted that he visited the imam and posed various questions but forgot to enquire about the prophetic weapon. Later, he received a letter from the imam in which he wrote: “I am like a father and the rightful heir to the Prophet, and everything that has come from him, including his weapon, is in my possession.”Footnote 47This prophetic weapon is compared to the Ark of the Covenant in some hadith. For example, Jaʿfar al-Ṣādiq stated, “I possess the prophetic weapon, and it holds the same significance for us as the Ark of the Covenant does for Jews. It accompanies us wherever we go and remains with each Imam.”Footnote 48In various hadith, this weapon is counted as one of the signs (ʿalāmāt) of Shiʿi imams, as its possession grants its holder the status of Imamate.Footnote 49
While these hadith contain little information about the nature of the prophetic weapon, other hadith provide specific details about various prophetic weapons that are secretly held by Shiʿi imams. One notable example is the Prophet’s armour (darʿ), which is said to be in the possession of Shiʿi imams. In a hadith attributed to Jaʿfar al-Ṣādiq, it is stated.
When the Messenger of God was near death, he called for al-ʿAbbās ibn ʿAbd al-Muṭallib and the Prince of the Faithful [ʿAlī]. He said to al-ʿAbbās, “O uncle of Muḥammad, will you take the inheritance of Muḥammad, settle his debts, and fulfill his promises?” Al-ʿAbbās replied, “O Messenger of God, may my father and mother be sacrificed for you. I am an old man with many dependents and little wealth. Who can bear your burden and you are such a generous man?”…
The Prophet then said, “I will give it to the one who is worthy of it.” He turned to ʿAlī and said, “O ʿAlī, brother of Muḥammad, will you fulfill Muḥammad’s promises, settle his debts, and take on his inheritance?” ʿAlī replied, “Yes, may my father and mother be sacrificed for you. That is my duty and my obligation.”
The Prophet then called out, “O Bilāl, bring me the helmet (mighfar), the armour (dirʿ), the banner (rāya), the shirt (ghamīṣ), Dhū al-Fiqār, the turban (siḥāb), the garment (burd), the belt (abraqa), and the staff (ghaḍīb).”Footnote 50
The prophetic armour is another piece of weaponry inherited by Shiʿi imams, and it will be one of the signs of the final imam, al-Mahdī, who will don the Prophet’s robe, turban, shirt and armour in the end time.Footnote 51Similarly, various hadith affirm that Shiʿi imams possess the Prophet’s banner (rāya). One such hadith states that when the awaited imam, al-Mahdī, appears, one of his major signs will be the Prophet’s banner, which Gabriel brought down on the day of the Battle of Badr. According to the hadith, this banner was not made of wool, cotton, silk or satin, but rather from a paradise leaf (waraq al-janna). The Prophet entrusted it to ʿAlī, and it ensured his military victory. The hadith further explains that the banner was passed down to other imams, and it will remain unseen until the arrival of al-Mahdī, when it will strike unparalleled terror and fear into his opponents.Footnote 52A better-known version of this hadith states that the banner was given to the first imam during the Battle of Khaybar, and this hadith is cited in various Shiʿi and Sunni sources.Footnote 53
Thus, the white Jafr is said to contain a range of sacred texts, including the Psalms of David, the Torah of Moses, the Gospel of Jesus and the books of Abraham. It also contains legal and religious guidance, along with prophecies and prognostications about the future. However, the red Jafr is associated with apocalyptic militarism. While the nature of the red Jafr remains unclear, various hadith elaborate on different prophetic weapons inherited by Shiʿi imams, such as the Prophet’s armour, banner and sword, which are passed down through each imam. These weapons are imbued with eschatological significance as they will be revealed only during the apocalyptic events led by al-Mahdī. They will strike terror into his enemies at the end of time. In this sense, narratives about these two books help us understand Jafr not only as a book of prognostications and prophecies, but also as a book of weapons – an arsenal of prophetic apparatuses that will play a decisive role in the ultimate and final messianic battle. Thus, these two Jafr books endow Shiʿi imams with foreknowledge, prognostic insight and utopian triumphalism.
Jafr: genesis, content and authorship
Jafr is frequently mentioned in hadith as a distinct text and as an emblem and hallmark of Imamic knowledge. Early Shiʿi sources uniformly assert that the Prophet dictated the book of Jafr to ʿAlī ibn Abī Ṭālib, who inscribed it on Jafr. A notable example is the following hadith, which provides a detailed narrative of the compilation of the book of Jafr:
Al-Ḥasan ibn Rāshid reported: I heard Abū Ibrāhīm [Mūsā al-Kāẓim] saying: “God revealed to the Prophet that ‘your time in this world has come to an end, so hasten to meet your Lord’.” The Prophet then raised his hands toward the sky and said, “Fulfill the promise You made to me, for You never break Your promises.”Footnote 54“You must go to Mount Uḥud with someone you trust,” God commanded the Prophet. The Prophet repeated his request, and God reassured him: “Go to Mount Uḥud with your cousin [ʿAlī], facing away from the Kaʿba. Then, summon the wild animals of the mountain, and they will come to you. Among them will be a young female goat (jafra), just beginning to grow her horns, with fresh blood in her neck. She is yours. Instruct your cousin to sacrifice it and remove the skin from its neck. Once the skin is removed and tanned, Gabriel will appear before you, and he will carry an inkwell and a pen. This pen is unlike any earthly pen: its writing endures forever, the parchment never ages, and neither the earth nor the soil can erase it. Each time you open it, it remains fresh, protected (maḥfūẓ), and concealed (mastūr). Gabriel will reveal to you the knowledge of the past and the future, and you are to recite it to your cousin, who will then dip into the inkwell and write it upon jafr.”
The Prophet made his way to Mount Uḥud and followed the instructions exactly. Each detail unfolded as foretold. As he began to skin the goat (jafra), the faithful spirit Gabriel appeared before him, surrounded by countless angels, whose number only God knows. ʿAlī then took the skin in his hands, and the inkwell and pen were handed to him – both resembling vibrant green plants, yet even greener and more radiant.
The Prophet then received the revelation and recited it to ʿAlī, who inscribed everything that had occurred – and all that would take place in the future – onto the skin. The Prophet conveyed to ʿAlī the knowledge of all past and future events until the Day of Resurrection (yawm al-qiyāma). He also explained matters whose true meanings are known only to God and those deeply rooted in knowledge.Footnote 55The Prophet enlightened ʿAlī about all the saints of God who would emerge from his descendants until the Day of Resurrection, as well as the identities of all his adversaries throughout history. ʿAlī carefully recorded each one. The Prophet then revealed what would transpire after his death. When ʿAlī asked about his responsibilities, the Prophet instructed him to remain patient and to command all imams and their followers to endure until the difficult times passed. The Prophet described these challenging periods as well as their signs and informed ʿAlī of the indicators that would herald the rule of Banū Hāshim. All apocalyptic revelations (malāḥim) and the miraculous knowledge possessed by every legatee (waṣī) are drawn from this book.Footnote 56
The book of Jafr is, thereby, far more than an ordinary book; its writing is celestial and it defies human conventions. It is crafted through divine communication and inscribed with a heavenly pen and inkwell by ʿAlī. Its words are immortal and impervious to the ravages of time or earthly forces. It is written in radiant green ink, shimmering with a heavenly glow, and etched onto the skin of a goat or sheep. While some hadith suggest it includes legal minutiae, its essence is deeply apocalyptic. It includes all that will unfold in the course of history. Indeed, it is not merely a record of events but a divine chronicle of rulers, sovereigns and pivotal incidents, thus embodying a powerful political nature.
There are also certain Judaic connections with Jafr. In a hadith narrated from Jaʿfar al-Ṣādiq, it is mentioned that the original tablets of the Torah contained all the knowledge humanity would need until the end of time, and they were crafted from heavenly emeralds. As the time of Moses drew to a close, God instructed him to hide these sacred tablets. Moses went to a certain mountain, which miraculously split open and allowed him to conceal the tablets inside until the appropriate time. When the era of the Prophet of Islam arrived, a caravan passed by the same mountain, and once again, it miraculously split open, which revealed the tablets exactly as Moses had left them. They brought these tablets to the Prophet, who read them, written in the Hebrew script, and found that they contained a comprehensive record of all events from the dawn of humanity to the end of time. The Prophet then asked ʿAlī to keep these tablets, but ʿAlī responded that he could not read Hebrew. The Prophet, however, reassured him, saying that the angel of revelation had said that if ʿAlī placed the tablets under his pillow for a night, by the next day he would be able to read them. As foretold, ʿAlī awoke the following day with the ability to understand the script. The Prophet then instructed ʿAlī to transcribe the contents of the tablets, which he did, and he then wrote them on the skin of a sheep (jild shā), hence the name Jafr. This sacred book, which preserves the divine knowledge of past and future events, was passed down through Shiʿi imams.Footnote 57
The apocalyptic and prognostic nature of Jafr is also vividly expressed in the following hadith, where Jaʿfar al-Ṣādiq, overcome by grief, recounts the future tribulations that will accompany the occultation of the awaited Qāʾim (al-Mahdī):
Sadīr al-Ṣayrafī narrates: “I, along with Mufaḍḍal ibn ʿUmar, Abū Baṣīr, and Abān ibn Taghlib, entered the presence of our master Abū ʿAbd Allāh al-Ṣādiq, peace be upon him. We found him seated on the ground, dressed in a simple Khaybarian garment with no collar, and its sleeves were short.Footnote 58He was weeping like a grief-stricken mother who had lost her child, his heart burning with sorrow. The signs of deep anguish were visible on his face; his cheeks had paled, and tears had worn down the rims of his eyes. He cried out, “My master! Your absence has taken sleep from me, narrowed my resting place, and stolen the peace from my heart. My master! Your absence has connected my sorrow to eternal grief, and the loss of one after another has led to the disappearance of all and everything. Every time a tear rises to my eyes or a sigh escapes my chest from the trials of past misfortunes, greater and more terrifying calamities – far harsher and worse than those I have already endured – appear before me, disasters blended with your wrath and tribulations mixed with your displeasure.”
Sadīr continued, “Our minds were shaken with terror, and our hearts shattered with fear at this overwhelming calamity. We assumed that a grievous catastrophe had befallen him or that a great misfortune had struck him. We said, ‘May God spare your eyes from tears, O son of the best of humankind! What event has caused such a downpour of tears and brought upon you this heavy mourning?’”
Imam al-Ṣādiq, peace be upon him, heaved a deep sigh, so heavy that it seemed to swell within him, which was caused by the intensity of his fear. He then said, “Woe unto you! This morning, I was looking into the book of Jafr (kitāb al-jafr). This book contains the knowledge of deaths, afflictions, great calamities, as well as what has passed and what is to come until the Day of Judgment. It is a knowledge that God has granted exclusively to Muḥammad and the imams after him. I was contemplating therein the birth of our Qāʾim, his occultation, the delay in his reappearance, his prolonged life, and the trials that the believers will endure in that time. Their hearts will be tested by the length of his occultation, doubts will arise, many will turn back from their faith, and they will cast off the yoke of Islam from their necks…Footnote 59
Jafr, as described in the lament of Jaʿfar al-Ṣādiq, is a sombre chronicle of humanity’s trials and tribulations. The book’s revelations foretell a future that is fraught with existential despair. The faithful will grapple with doubt and fear, and their resolve will be tested in the face of ordeals during the period of the occultation of the awaited imam. Some reports also indicate that Shiʿi imams utilized this book in their political decision-making. It is said that when the ʿAbbāsid caliph al-Maʾmūn (d. 833) invited ʿAlī ibn al-Riḍā to accept the caliphate, the eighth Shiʿi imam initially resisted. He only agreed to it after the caliph resorted to threats, as the imam recognized that the invitation was insincere since “Jafr and Jāmiʿa indicate otherwise”.Footnote 60In other words, the imam was aware that the offer to accept the caliphate was a plot against him, as these two books made no mention of such an event.
Jafr was believed to be enigmatic and difficult to interpret precisely because it was not composed in the conventional methods of writing but rather in a secretive and coded form.Footnote 61This is why some hadith maintain that access to Jafr was strictly restricted to Shiʿi imams. In a hadith attributed to al-Mūsā al-Kāẓim (d. 799), the seventh Shiʿi imam, he addressed his son, ʿAlī al-Riḍā, saying, “we both can read Jafr, and only a prophet or his legatee can read this book”.Footnote 62Thus, it appears that Jafr is a secretive and hidden book that can only be accessed by Shiʿi imams. Despite this, later Sunni and Shiʿi writers, while maintaining their belief in the book’s hidden nature, were convinced that its contents were not inaccessible to them, which arguably fuelled a surge of interest in the book during the late medieval and early modern periods.Footnote 63
Some confusion about the authorship of Jafr also needs to be addressed. Early Shiʿi sources are unanimous about the fact that the Prophet dictated this text and ʿAlī ibn Abī Ṭālib put it into writing. However, medieval Sunni sources sometimes attribute Jafr to Jaʿfar al-Ṣādiq, a claim that has no basis in early Shiʿi literature. While some mentioned that Ibn al-Qutayba (d. 889), an early Muslim theologian, attributed Jafr to Jaʿfar al-Ṣādiq,Footnote 64this seems to be a misunderstanding. He was a contemporary of Ibn al-Ṣaffār, who appears to be the first Shiʿi scholar to document Jafr traditions. According to Ibn al-Qutayba, rawāfiḍ, a derogatory term for the Shiʿa, consider this book to be an esoteric commentary on the Quran. He also cites a poem by the Zaydī poet Hārūn ibn Saʿd al-ʿIjlī, who ridiculed these claims.Footnote 65Although Ibn al-Qutayba did not associate Jafr with Jaʿfar al-Ṣādiq, later medieval Sunni writers frequently drew such connections.
The Mamlūk historian Ibn Khallikān (d. 1282), for example, asserts that Jaʿfar al-Ṣādiq compiled Jafr and incorporated all that people will need until the end of time into this book.Footnote 66Ibn al-Khaldūn (d. 1406), the renowned Sunni historian, offers a similar narrative. He notes that Hārūn ibn Saʿd al-ʿIjlī had access to Jafr, a book that contained prophecies from the prophetic family (ahl al-bayt) and was written by Jaʿfar al-Ṣādiq on the skin of a small bull (jild thawr ṣaghīr). According to Ibn al-Khaldūn, many claims attributed to this book are unfounded, yet he acknowledges that the prophetic family possessed the ability to predict the future, as they were “people of wonder (ahl al-karāma)”.Footnote 67He also states that the philosopher Yaʿqūb ibn Isḥāq al-Kindī (d. 873) wrote an astrological book on conjunctions (qirānāt) for the ʿAbbāsid caliphs. However, Shiʿa claimed this work to be Jafr and attributed it to Jaʿfar al-Ṣādiq. This book was said to predict the future of the ʿAbbāsids, including the fall of Baghdad and the decline of Islam during the Mongol invasions. Although Ibn al-Khaldūn notes that no one has seen this book, he also suggests that it may have been among the books thrown into the Tigris River by the Mongol warlord Hülegü Khan (d. 1265) after he captured Baghdad.Footnote 68The Almohads in the Maghrib, he noted, possessed a work known as “little Jafr” (al-jafr al-ṣaghīr), which contained predictions about the future.Footnote 69The prominent Sufi and Persian poet ʿAbd al-Raḥmān Jāmī (d. 1492) similarly wrote:
Sayyid Ḥusayn Akhlāṭī (d. 1397) also offers a similar genealogy for Jafr. He maintains its connection to ʿAlī, as he states that the practitioner of Jafr must be a sayyid, a descendant of ʿAlī. Although he traces the lineage of its practitioners back to ʿAlī, he does not attribute Jafr to him. Instead, Akhlāṭī specifically mentions that in writing his Risāla-yi Jafr-i jāmiʿa, he drew upon the secret Jafr (al-jafr al-khafī), which he attributes to Jaʿfar al-Ṣādiq. According to Akhlāṭī, Jaʿfar al-Ṣādiq had access to an original Jafr manuscript that was preserved in the treasury of Solomon. This knowledge was subsequently passed down to Āṣaf ibn Barkhiyā, Solomon’s vizier, Alexander the Great (Dhū al-Qarnayn), the prophetic books (ṣuḥuf al-anbiyāʾ) and Gabriel.Footnote 71The authorship of Jafr has long been a source of confusion in Islamic history. Early Shiʿi sources consistently assert that the Prophet dictated the text, which was transcribed by ʿAlī ibn Abī Ṭālib and subsequently passed down to other imams. In contrast, later Sunni sources often attribute Jafr to Jaʿfar al-Ṣādiq. Overall, various hadith in early Shiʿi sources consistently view Jafr as a hallmark of supreme Imamic knowledge and a divine chronicle of events, rulers and all occurrences throughout history. Despite being perceived as esoteric and enigmatic, with access restricted to Shiʿi imams, Jafr has attracted the interest of various occultists over time, which demonstrates its fundamental role as the ultimate symbol of occult, apocalyptic and prognostic knowledge.
Jafr versus Jāmiʿa
Various hadith mention Jafr and Jāmiʿa together, which has created some confusion about their connections. Some reports describe Jāmiʿa as a comprehensive legal text that outlines what is lawful and unlawful. A key early source on this matter is Baṣāʾir al-darajāt by al-Ṣaffār al-Qummī, which includes a section titled “A Chapter on the Comprehensive Book (al-ṣaḥīfa al-jāmiʿa), Dictated by the Messenger of God and Written by ʿAlī, which is Seventy Cubits Long”.Footnote 72Jāmiʿa is a comprehensive collection that not only contains broad and specific legal issues but also particular regulations, such as the punishment for inflicting a scratch on someone’s skin. The vast scope and dimensions of Jāmiʿa indicate that it must be a colossal text. Spanning 70 dhirāʿ, which is equivalent to roughly 35 metres by modern standards, Jāmiʿa is not only physically immense but also covers a wide range of legal matters. This expansive nature is indicated in a hadith in which Muḥammad al-Bāqir refers to a “large house” (bayt kabīr) that held this enormous book. After gesturing towards this large house, he told his companion, Ḥamrān ibn Aʿyan, “If we rule, we then follow what God revealed and we do not disobey this book.”Footnote 73Jāmiʿa’s thoroughness is further emphasized by Jaʿfar al-Ṣādiq, who notes that even mundane details, such as the rattling of chains or private conversations, are meticulously recorded in it.Footnote 74
Overall, while Jāmiʿa is exoteric and legal, Jafr is esoteric, apocalyptic and prognostic. This is plausible, as the combination of these two books reveals Imamate’s dual nature – exoteric and esoteric or legal and theosophical. Together, these two texts complement one another as they demonstrate the unparalleled mastery of Shiʿi imams across all domains of knowledge, from the mysteries of the cosmos and prognostic and futuristic prophecies to the most detailed and nuanced legal codes. However, some hadith attribute similar exoteric characteristics to the white Jafr. This book is said to contain detailed legal matters. It outlines what is permissible (ḥalāl) and what is not (ḥarām), and prescribes punishments for minor offences, such as inflicting a small scratch on someone’s skin.Footnote 75Thus, the confusion regarding these two books and their distinction seems to arise from early Shiʿi sources that attribute similar characteristics to both the white Jafr and Jāmiʿa.Footnote 76
This confusion may account for the gradual emergence of al-Jafr al-jāmiʿ or The Comprehensive Prognostication as a lettrist work in medieval occult literature. This book is often attributed to ʿAlī ibn Abī Ṭālib.Footnote 77Some may have conflated Jafr and Jāmiʿa and interpreted the latter as a description of the former’s contents, thus leading to the idea of al-Jafr al-jāmiʿ. The Syrian occultist Kamāl al-Dīn Muḥammad ibn Aḥmad ibn Ṭalḥa (d. 1254) provides one of the earliest references to al-Jafr al-jāmiʿ and notes that Jafr had become popularly known as al-Jafr al-jāmiʿ wa-l-nūr al-lāmiʿ.Footnote 78While hadith discussing Jafr and Jāmiʿa remain integral to Shiʿi tradition,Footnote 79these two sources increasingly appear to have merged into Jafr as a unified occult text in medieval Islamic literature. Ibn Ṭalḥa offers an early narrative that sheds light on this discernible shift.Footnote 80He describes al-Jafr al-jāmiʿ as a book, attributed to ʿAlī, that contains 1,700 sources of knowledge. It appears that, by this period, the book had already gained a significant reputation, as Ibn Ṭalḥa recounts various interpretations of its contents. For example, he states that lettrists (al-sāda al-ḥarfiyya) regarded the book as the key to unlocking the secrets of the unseen (miftāḥ al-ghuyūb), while the diviners (ahl al-malāḥim) believed it revealed the mysteries behind worldly events (ḥawādith al-kawn), alongside other similar narratives.Footnote 81Miftāḥ al-Jafr al-jāmiʿ, written by the occultist ʿAbd al-Raḥmān al-Bisṭāmī (d. 1454), is another highly esteemed Arabic text in Islamic apocalyptic literature, in which ʿAlī is the focal figure of divination and prophecy. Miftāḥ’s significance was such that it became a closely guarded family secret, often copied and illuminated in both its original Arabic and Ottoman Turkish versions in royal workshops.Footnote 82At any rate, it appears that the overlapping attributes of both the white Jafr and Jāmiʿa in early Shiʿi sources most likely played a key role in combining these two sources together into one comprehensive book of prophecy and divination in later occult traditions.Footnote 83
Concluding remarks
This article examined various aspects of Jafr in early Shiʿi literature. Contrary to later Sunni sources, which attributed it to Jaʿfar al-Ṣādiq, early Shiʿi texts unequivocally assert that Jafr was revealed by the Prophet and transcribed by ʿAlī ibn Abī Ṭālib on the skin of animals such as a sheep or a goat. These sources describe Jafr as a repository of divine knowledge that contains past and future events and offers humanity all necessary knowledge. The Jafr hadith, thus, show its role not just as a fountain of esoteric knowledge and a vital link between the divine and the created. These narratives particularly present Shiʿi imams as the bearers of sacred knowledge essential for human salvation. Jafr in early Shiʿi sources represents the extraordinary knowledge of the imams, knowledge that combines the esoteric and the exoteric. These narratives introduce them as the guardians of all branches of knowledge, custodians of cosmic mysteries and providers of legal and exoteric guidance for the faithful. Furthermore, some narratives distinguish between white and red Jafr, but the latter remains shrouded in mystery. As demonstrated, the red Jafr refers to the collection of prophetic instruments and weapons, which are destined to be revealed in the end time by al-Mahdī. Thus, Jafr is not only a source of prophecy but also the key to ultimate prophetic power, which promises a prognostic glimpse into the future as well as Shiʿi imams’ ultimate triumph and sovereignty over all.Footnote 84
If lettrism became the most Islamic of all occult sciences by the early modern era,Footnote 85then early Shiʿi literature on Jafr offers an excellent vantage point for understanding the evolution of occult thought in early Islamic history and its influence on later Sunni and Shiʿi lettrists, who regarded Jafr not as absurd or fantastical but as a crucial tool for unlocking the mysteries of the cosmos. Initially, Jafr, with its apocalyptic and prophetic aspects, was regarded in early Shiʿi sources as a distinctive symbol of Imamate, and the book was inaccessible to fallible humans. However, it soon captured the imagination of various Muslim kabbalists and emperors, who perceived it as a valuable scientific tool for apocalyptic militantism, utopian messianism and prognostic futurism.Footnote 86Jafr, then, sheds light on the emergence and development of prognostic and apocalyptic mindsets in the Islamic world, which are ultimately entangled with the central and symbolic role of ʿAlī ibn Abī Ṭālib.