Joseph, in Genesis and the Qurʾan, is put in prison on a false charge, keeps faith there for years, and is brought out by a king's dream to govern Egypt. Mūsā al-Kāẓim, the seventh Imam of the Twelver Shia, was held by Hārūn al-Rashīd in Basra and Baghdad from 179 AH (796) until he died in custody in 183 (799), and Shia tradition remembers him at prayer in his cell, thanking God for the solitude. No verse, hadith, commentary or classical biography found here sets the two side by side: the comparison is the site's own, made in al-Kāẓim's entry (“The righteous prisoner: Joseph, Jeremiah, Akiva”), and the same comparison appears in modern Shia devotional writing, which contrasts Joseph's way out of prison with the Imam's.
Side by side
Hebrew Bible
Genesis: “a place where the king’s prisoners were bound”
When Potiphar's wife accused him, “Joseph’s master took him, and put him into the prison, a place where the king’s prisoners were bound: and he was there in the prison. But the LORD was with Joseph, and shewed him mercy, and gave him favour in the sight of the keeper of the prison. And the keeper of the prison committed to Joseph’s hand all the prisoners that were in the prison” (Genesis 39:20–22). The prison was “in the house of the captain of the guard” (40:3), the title Genesis gives Potiphar (39:1). To the butler whose dream he read, Joseph said, “think on me when it shall be well with thee… and make mention of me unto Pharaoh, and bring me out of this house: For indeed I was stolen away out of the land of the Hebrews: and here also have I done nothing that they should put me into the dungeon” (40:14–15). “Yet did not the chief butler remember Joseph, but forgat him” (40:23), until “the end of two full years” (41:1), when Pharaoh's dreams had Joseph brought “hastily out of the dungeon” (41:14). Genesis does not say how long he was in prison. He was “seventeen years old” when the story begins (37:2) and “thirty years old when he stood before Pharaoh” (41:46), so slavery and prison together took thirteen years. For the story, see Joseph's entry (“Potiphar's house and the prison”, “Pharaoh's dreams”).
Genesis 37:2; 39:1, 20–23; 40:3, 14–15, 23; 41:1, 14, 46
Hebrew BibleChristian tradition
Psalm 105: “he was laid in iron”
The psalm that retells Israel's history remembers Joseph's prison more harshly than Genesis: “He sent a man before them, even Joseph, who was sold for a servant: Whose feet they hurt with fetters: he was laid in iron: Until the time that his word came: the word of the LORD tried him. The king sent and loosed him; even the ruler of the people, and let him go free. He made him lord of his house, and ruler of all his substance” (Psalm 105:17–21). Genesis says only that he was “bound” in the prison (Genesis 40:3) and names no fetters. The Hebrew of “he was laid in iron” reads word for word: into iron came his soul (barzel bāʾāh nafshō), nefesh meaning soul, life or neck. Miles Coverdale's Psalter (1539), kept in the Book of Common Prayer, renders it “the iron entered into his soul”, and the phrase passed into English.
Psalm 105:17–21 · Book of Common Prayer (1662), Psalm 105:18
MidrashJewish traditionPseudepigrapha
The rabbis: twelve years, and two for trusting the butler
The rabbis fill in what Genesis leaves open. Seder Olam and Genesis Rabbah reckon one year in Potiphar's house and twelve in prison; Pirke de-Rabbi Eliezer gives ten years in prison, and the Book of Jubilees, a retelling of the 2nd century BC, three (Jewish Encyclopedia, “Joseph”). The last two years are explained as a punishment. On Genesis 40:23 Rashi (d. 1105), after Genesis Rabbah 89:3, writes: “Because Joseph depended on him to remember him, it was necessary that he remain imprisoned for two years.” He cites the psalm, “Blessed is that man that maketh the LORD his trust, and respecteth not the proud” (Psalm 40:4; 40:5 in Hebrew), and reads its “proud” (rehavim) as Egypt, which Scripture calls Rahab. Louis Ginzberg's Legends of the Jews (1909–38), which weaves the midrashim into one narrative, gives the whole count a reason: when the butler was freed, Joseph “had been there ten years by that time, and had made amends for the slander he had uttered against his ten brethren” (Genesis 37:2 says he “brought unto his father their evil report”); “However, he remained in prison two years longer.”
Seder Olam Rabbah; Genesis Rabbah 86:7 · Genesis Rabbah 89:3 · Rashi on Genesis 40:23 · Pirke de-Rabbi Eliezer · Jubilees · Jewish Encyclopedia (1906), “Joseph” · L. Ginzberg, The Legends of the Jews, vol. 2
Qurʾan
The Qurʾan: “Prison is more dear”
In the Qurʾan prison is first Joseph's own choice: “O my Lord! Prison is more dear than that unto which they urge me” (Qurʾan 12:33). Then “it seemed good to them (the men-folk) after they had seen the signs (of his innocence) to imprison him for a time” (12:35). He preaches to the two young men jailed with him, “O my fellow-prisoners! Are divers lords better, or Allah the One, Almighty?” (12:39), and reads their dreams. “And he said unto him of the twain who he knew would be released: Mention me in the presence of thy lord. But Satan caused him to forget to mention it to his lord, so he (Joseph) stayed in prison for some years” (12:42). When the freed man comes back with the king's dream he calls him “Joseph! O thou truthful one!” (ayyuhā l-ṣiddīq, 12:46). Summoned by the king, Joseph will not leave until his name is cleared: “Return unto thy lord and ask him what was the case of the women who cut their hands” (12:50); the women clear him, and the wife of al-ʿAzīz confesses, “he is surely of the truthful” (12:51). At the end he thanks God “since He took me out of the prison” (12:100). The sūra calls the ruler “the king” (al-malik) and Joseph's master al-ʿAzīz, whose wife Pickthall calls “the ruler's wife” (12:30); the name Pharaoh does not appear in it. See Joseph's entry, “The preacher in prison”.
Qurʾan 12:33–42, 46, 50–51, 100
TafsirSunni hadith
The commentators on Qurʾan 12:42
- Who forgot. Al-Ṭabarī (d. 923) takes it that Joseph forgot: in asking a man for help he lapsed from relying on his Lord, and that is why he stayed so long. Ibn Kathīr (d. 1373) holds the right reading to be that the freed man forgot, while noting that Ibn ʿAbbās, Mujāhid and ʿIkrima are reported to have taken it of Joseph. Pickthall's “Satan caused him to forget to mention it to his lord” follows Ibn Kathīr's reading, and Genesis tells it the same way (Genesis 40:23).
- How many years. Biḍʿ, a few, means from three to nine, in al-Ṭabarī's own reading and in the glosses of Mujāhid and Qatāda (mā bayna l-thalāth ilā l-tisʿ). Qatāda is also reported as saying seven; Wahb b. Munabbih, that Joseph was in prison seven years as Job was seven years in affliction; and al-Ḍaḥḥāk, from Ibn ʿAbbās, twelve years, and in his own words fourteen; al-Ṭabarī also reports from Ibn ʿAbbās that the biḍʿ is fewer than ten.
- “May Allah have mercy on Joseph”. A saying of the Prophet, that had Joseph not said what he said, he would not have stayed in prison as long as he did (law lam yaqul … al-kalima allatī qāl, mā labitha fī l-sijn ṭūla mā labith), comes with a chain through Sufyān b. Wakīʿ and Ibrāhīm b. Yazīd al-Khūzī. Ibn Kathīr calls it very weak (ḍaʿīf jiddan): Sufyān is weak and Ibrāhīm weaker; the other reports of it, among them one from al-Ḥasan al-Baṣrī in al-Ṭabarī, he counts mursal, not fit as proof. Ibn Ḥibbān includes a version with another chain, through Muḥammad b. ʿAmr from Abū Salama from Abū Hurayra, in his Ṣaḥīḥ (no. 6206): “May Allah have mercy on Joseph. Were it not for the word he said, ‘Mention me to your lord,’ he would not have remained in prison as long as he did.” Its strength is disputed: Shuʿayb al-Arnaʾūṭ called its chain ḥasan, but al-Albānī judged this wording munkar, and Ibn Kathīr, in al-Bidāya, calls the report munkar by this route, counts the wording among the oddest of Muḥammad b. ʿAmr's reports, and holds that the version in al-Bukhārī and Muslim (next item) shows it to be a mistake.
al-Ṭabarī, Jāmiʿ al-bayān (on 12:42) · Ibn Kathīr, Tafsīr (on 12:42) · Ibn Ḥibbān, al-Ṣaḥīḥ 6206 (ed. Shuʿayb al-Arnaʾūṭ, with al-Albānī's grading); Ibn Kathīr, al-Bidāya wa-l-nihāya 1 (Joseph)
Sunni hadith
“I would have accepted it”: the Prophet on Joseph's patience
Sunni hadith praises Joseph for not hurrying out. Al-Bukhārī and Muslim both record from Abū Hurayra the Prophet's words: “If I were to stay in prison (for a period equal to) the stay of Joseph (prison) and then the offer of freedom came to me, then I would have accepted it” (al-Bukhārī 3387; in Muslim 151, wa-law labithtu fī l-sijn ṭūla labthi Yūsuf la-ajabtu l-dāʿī, “had I stayed (in the prison) as long as Yusuf stayed, I would have responded to him who invited me”). Al-Nasāʾī files it in the commentary section of his al-Sunan al-kubrā under Qurʾan 12:50, the verse in which Joseph sends the king's messenger back.
Ṣaḥīḥ al-Bukhārī 3387 · Ṣaḥīḥ Muslim 151 · al-Nasāʾī, al-Sunan al-kubrā 11189 · Qurʾan 12:50
Shia hadithShia traditionHistory
Al-Kāẓim: the arrest and the prisons
Al-Kāẓim's entry tells the story (“Arrest and imprisonment”, “Death on the bridge”). Shia sources date the arrest in Medina to 20 Shawwāl 179 (January 796; al-Kulaynī, al-Kāfī 1) and his arrival in Basra to 7 Dhū l-Ḥijja (al-Ṣadūq, ʿUyūn akhbār al-Riḍā 1). There ʿĪsā b. Jaʿfar held him in his house for about a year and, al-Mufīd says, refused a written order from Hārūn to kill him. In Baghdad he passed from al-Faḍl b. al-Rabīʿ to al-Faḍl b. Yaḥyā the Barmakid, who, Shia accounts say, treated him with honour and was flogged a hundred lashes for it, and last to al-Sindī b. Shāhak, in whose custody he died in Rajab 183 (August or September 799; al-Kulaynī and al-Mufīd give the 6th, the common Shia date is the 25th). Counted from the arrest, this last imprisonment lasted a little under four years; some modern surveys date the arrest to 793, which would make it six. It was not his first: the caliph al-Mahdī (r. 775–785) had brought him to Baghdad and held him before (see his entry, “Al-Mahdī's dream”).
al-Kulaynī, al-Kāfī 1 · al-Ṣadūq, ʿUyūn akhbār al-Riḍā 1 · al-Mufīd, al-Irshād 2 · B. S. al-Qurashī, The Life of Imam Musa bin Jaʿfar al-Kazim, ch. 17 · M. Momen, An Introduction to Shiʿi Islam (1985)
Shia traditionQurʾan
The prayer in Basra: thanks for the solitude
Al-Mufīd (d. 1022) reports that one of ʿĪsā b. Jaʿfar's spies often heard the Imam say in his prayer in Basra: Allāhumma innaka taʿlamu annī kuntu asʾaluka an tufarrighanī li-ʿibādatika, Allāhumma wa-qad faʿalta fa-laka l-ḥamd, in the English of al-Qurashī's biography “O Allah, You know that I used to ask you to give me free time to worship you. O Allah, You have done that. To you be praise.” Shia devotion pictures him in prostration so long that a visitor looking down into his cell took him for a garment thrown on the floor (see his entry, “The righteous prisoner: Joseph, Jeremiah, Akiva”). Shia lists of his titles add al-Ṣābir, “the patient”, to al-Kāẓim, “the one who restrains his anger” (from Qurʾan 3:134), al-ʿAbd al-Ṣāliḥ, “the righteous servant”, and Bāb al-Ḥawāʾij, “the gate of needs”.
al-Mufīd, al-Irshād 2:240 · Ibn Shahrāshūb, Manāqib Āl Abī Ṭālib · B. S. al-Qurashī, The Life of Imam Musa bin Jaʿfar al-Kazim, ch. 17 · Shia devotional literature (lists of titles) · Qurʾan 3:134
Sunni traditionQurʾan
A letter from prison
Sunni historians preserve a letter he is said to have sent Hārūn from prison. In the form given by al-Khaṭīb al-Baghdādī (d. 1071) and repeated by Ibn al-Jawzī and Ibn Kathīr, it runs: lan yanqaḍiya ʿannī yawmun min al-balāʾ illā inqaḍā ʿanka maʿahu yawmun min al-rakhāʾ, not a day of hardship will pass for me without a day of ease passing with it for you, until together we reach a day that has no end, on which those who follow falsehood will be the losers. The last words echo the Qurʾan: “on that day those who follow falsehood will be lost” (Qurʾan 45:27).
al-Khaṭīb al-Baghdādī, Tārīkh Baghdād 13 (Mūsā b. Jaʿfar) · Ibn al-Jawzī, Ṣifat al-ṣafwa · Ibn Kathīr, al-Bidāya wa-l-nihāya 10 (year 183) · Qurʾan 45:27
Sunni traditionShia tradition
His death, in each tradition's words
- Al-Ṭabarī notes only, under the year 183, that Mūsā b. Jaʿfar b. Muḥammad died in Baghdad (wa-fīhā māta Mūsā b. Jaʿfar b. Muḥammad bi-Baghdād), without a cause.
- Al-Khaṭīb al-Baghdādī says that Hārūn held him in Baghdad until he died in custody, and reports through Ibrāhīm, grandson of al-Sindī b. Shāhak, from his father ʿAbd al-Salām, that Mūsā b. Jaʿfar was held in their keeping (kāna Mūsā b. Jaʿfar ʿindanā maḥbūsan), and that when he died they sent for a group of upright witnesses from al-Karkh and had them attest his death.
- Al-Dhahabī (d. 1348) writes that Hārūn took him from Medina to Baghdad and held him until he died, without being kept in hardship (ghayra muḍayyaqin ʿalayhi; Tārīkh al-Islām).
- Ibn Khallikān (d. 1282) adds that it was said (qīla) he died poisoned; the Sunni scholar Ibn Ḥajar al-Haytamī (d. 1566), as Shia writers quote him, that poison was put in his food, or in dates, and that he died three days later.
- Shia sources. Al-Mufīd says that al-Sindī poisoned him, at the bidding of Yaḥyā b. Khālid the Barmakid, sent to Baghdad on Hārūn's behalf, with poison in his food or in dates, and that he died three days later, and that notables were brought to see that the body bore no marks; Abū l-Faraj al-Iṣfahānī reports instead that he was smothered in a carpet.
See his entry, “Death on the bridge”.
al-Ṭabarī, Tārīkh 8 (year 183) · al-Khaṭīb al-Baghdādī, Tārīkh Baghdād 13 (Mūsā b. Jaʿfar) · al-Dhahabī, Tārīkh al-Islām (Mūsā b. Jaʿfar) · Ibn Khallikān, Wafayāt al-aʿyān 5 · Ibn Ḥajar al-Haytamī, al-Ṣawāʿiq al-muḥriqa · al-Mufīd, al-Irshād 2 · Abū l-Faraj al-Iṣfahānī, Maqātil al-ṭālibiyyīn
Shia tradition
The ziyāra: the one tormented in the depths of prisons
A ziyāra text given by al-Majlisī (d. 1699) in Biḥār al-anwār (99:17) greets him as tormented in the depths of the prisons, and the same passage, as widely repeated, runs on: al-muʿadhdhab fī qaʿr al-sujūn wa-ẓulam al-maṭāmīr, dhī l-sāq al-marḍūḍ bi-ḥalaq al-quyūd, the one tormented in the depths of prisons and the darkness of dungeons, whose leg was bruised by the rings of fetters. Modern Shia devotional writing turns the phrases into greetings (al-salām ʿalā l-muʿadhdhab fī qaʿr al-sujūn), with another of his names: al-salām ʿalā l-Kāẓim al-ṣābir, peace be on the patient Kāẓim.
al-Majlisī, Biḥār al-anwār 99:17 (ziyāra of al-Kāẓim) · WikiShia, “Imam Musa b. Jaʿfar” · Shia devotional literature
Who draws the link
Shia traditionSunni traditionQurʾan
The site's comparison
The pairing is the site's own. No Qurʾan verse, hadith, commentary, classical biography or ziyāra found here compares al-Kāẓim with Joseph. In the reports of his prison the Imam does not use Joseph's words, neither “Prison is more dear…” (Qurʾan 12:33) nor “Mention me…” (12:42); his prayer in Basra thanks God for time to worship in words of his own. His titles do not come from Sūrat Yūsuf: al-Kāẓim is taken from Qurʾan 3:134, and the only word of the same root in the sūra describes Jacob, who held in his grief (kaẓīm, 12:84; see “Jacob and Zayn al-ʿĀbidīn”, “The commentators on Qurʾan 12:84”). The biographies consulted for this entry, al-Mufīd's al-Irshād, al-Khaṭīb's Tārīkh Baghdād and the modern Shia life by Bāqir Sharīf al-Qurashī, do not draw it; al-Qurashī's chapter on the prisons likens him instead to Jesus, in fear of God and piety. Al-Kāẓim's entry on this site sets him with Joseph, Jeremiah, Paul and Rabbi Akiva as righteous prisoners (“The righteous prisoner: Joseph, Jeremiah, Akiva”); this card takes up the first of them. The marker “observed” therefore stands.
al-Mufīd, al-Irshād 2 · al-Khaṭīb al-Baghdādī, Tārīkh Baghdād 13 · B. S. al-Qurashī, The Life of Imam Musa bin Jaʿfar al-Kazim, ch. 17 · Qurʾan 3:134; 12:33, 42, 84
Shia tradition
Modern Shia devotion: “the model of prisoners”
Popular Shia writing does make the comparison. A post titled Uswat al-sujanāʾ, “The model of prisoners”, on the online forum of the shrine of al-ʿAbbās in Karbalāʾ (2021), calls Joseph's verse “the Yūsufī law” (al-qānūn al-yūsufī) and sets the two prisoners against each other. Joseph chose prison to escape sin, while Mūsā b. Jaʿfar loved prison “not only as a flight from sin” (laysa hurūban min maʿṣiya faqaṭ) but for worship. Joseph asked a fellow prisoner to mention him to the king; the Imam would seek no one's intercession with Hārūn. At Joseph's prison gate waited the litter of kings and the mount of princes (naʿsh al-mulūk wa-markab al-umarāʾ); at the Imam's, the bier of death carried by four of the jailers (naʿsh al-maniyya yaḥmiluhu arbaʿa min al-sajjānīn). These are modern devotional pieces, not reports, and they name no earlier source for the comparison.
Uswat al-sujanāʾ, forum of the al-ʿAbbās shrine (forums.alkafeel.net), 2021 · Shia devotional literature
Shia hadithQurʾan
Where Shia hadith does turn to Joseph
Shia hadith uses Joseph as a precedent for an Imam under a caliph, but for other Imams. In al-Ṣadūq's ʿUyūn akhbār al-Riḍā (2, ch. 40, nos. 1–2), al-Kāẓim's son ʿAlī al-Riḍā, faulted for accepting al-Maʾmūn's succession, answers that Joseph, a prophet, served an unbelieving king and asked, “Set me over the storehouses of the land” (Qurʾan 12:55), and that he himself was compelled (“But I was forced to do so”, in the English translation). The reports that give the Mahdī a trait from Joseph belong to the next card, “Joseph and the Mahdī”; the Wāqifa, who denied al-Kāẓim's death, held him to be that Mahdī (see his entry, “The Wāqifa: those who stopped”). The nearest report comes at al-Kāẓim's death. In ʿUyūn akhbār al-Riḍā (1, ch. 8, no. 6), al-Musayyib, his prison guard, tells that a man who looked like the Imam washed and shrouded the body unrecognised by al-Sindī's men, a figure the translator, with Shia tradition, identifies as al-Riḍā, and told him, “The similitude of me is like that of the honest Joseph” (in the English translation), the others being like Joseph's brothers, who came to him and knew him not (wa-hum lahu munkirūn, Qurʾan 12:58). It is the son, not the prisoner, who is likened to Joseph. None of these lines, in the sources found, turns to Joseph's prison for al-Kāẓim.
al-Ṣadūq, ʿUyūn akhbār al-Riḍā 2, ch. 40, nos. 1–2, and 1, ch. 8, no. 6 (English tr., al-islam.org); Qurʾan 12:58 · Qurʾan 12:55 · al-Ṭūsī, al-Ghayba
Where they differ
Hebrew BibleQurʾanShia tradition
Raised, or carried out
Joseph leaves prison for the palace: “they brought him hastily out of the dungeon” (Genesis 41:14), and Pharaoh tells him, “Thou shalt be over my house… only in the throne will I be greater than thou” (41:40); in the Qurʾan the king says, “Lo! thou art to-day in our presence established and trusted” (Qurʾan 12:54). Al-Kāẓim left prison dead, and his body was laid on the bridge of Baghdad (see his entry, “Death on the bridge”). Joseph's prison is a stage on the way to power and to the saving of his family; al-Kāẓim's, in Shia memory, is the end of a life spent under rulers who held the place the Shia believed belonged to the Imams.
Genesis 41:14, 40 · Qurʾan 12:54 · al-Mufīd, al-Irshād 2
Hebrew BibleQurʾanShia tradition
A private charge and a ruler's fear
Joseph was jailed by his master on his wife's false word (Genesis 39:19–20); in the Qurʾan the household jail him “for a time” after they had seen the signs of his innocence (Qurʾan 12:35). Neither text says that Pharaoh, or the king, knew of him before the butler spoke. Al-Kāẓim was arrested on the caliph's own order, after informers told Hārūn that money came to him from the provinces and that people greeted him as caliph (see his entry, “Arrest and imprisonment”). Joseph's prison begins with one woman's lie; al-Kāẓim's, with the ruler's fear of a rival claim.
Genesis 39:19–20 · Qurʾan 12:35 · al-Mufīd, al-Irshād 2 · al-Kulaynī, al-Kāfī 1
Hebrew BibleQurʾanMidrashTafsirShia tradition
Asking to be remembered, refusing to ask
Joseph asked the butler, “make mention of me unto Pharaoh” (Genesis 40:14; Qurʾan 12:42), and both Rashi and al-Ṭabarī count the request against him: it cost him two more years, or some years. Yet when the summons came he would not leave until he was cleared (Qurʾan 12:50), and the hadith praises him for it (see “Side by side”). Murtaḍā Muṭahharī (d. 1979), in his book on the lives of the Imams, tells without giving a source that Hārūn sent Yaḥyā b. Khālid to say that the Imam's innocence was proven but that the caliph had sworn not to free him until he confessed a wrong and asked pardon. The Imam answered, “Tell Harun that there is not much left of my life and that is it”, and a week later, Muṭahharī says, he was poisoned. The devotional writers contrast the two prisoners over Joseph's request; over the refusal to buy release with an admission of guilt, the Imam is nearer to Joseph's answer in Qurʾan 12:50.
Genesis 40:14 · Qurʾan 12:42, 50 · Rashi on Genesis 40:23 · al-Ṭabarī, Jāmiʿ al-bayān (on 12:42) · M. Muṭahharī, A Survey into the Lives of the Infallible Imams, ch. 5 (English tr., al-islam.org)
Hebrew BibleQurʾanShia traditionSunni tradition
The interpreter and the worshipper
In prison Joseph acts. In Genesis he runs the prison for its keeper (Genesis 39:22) and reads the officers' dreams; in the Qurʾan he preaches God's oneness to his fellow prisoners before reading theirs (Qurʾan 12:37–40). The reports of al-Kāẓim show him withdrawn: praying and prostrating, and those who are moved are moved by watching him, ʿĪsā b. Jaʿfar's spy and the visitor who looked down into his cell. He was held in the houses of officials, ʿĪsā's in Basra and al-Sindī's in Baghdad, and no report found here has him interpret a dream or teach a fellow prisoner.
Genesis 39:22; 40 · Qurʾan 12:37–41 · al-Mufīd, al-Irshād 2:240 · al-Ṣadūq, ʿUyūn akhbār al-Riḍā 1 · al-Khaṭīb al-Baghdādī, Tārīkh Baghdād 13
Hebrew BibleQurʾanSunni traditionShia traditionHistory
Scripture and history
Joseph's prison is told in scripture, by Genesis, the Psalm and the Qurʾan, and no Egyptian record mentions it (see Joseph's entry, “A story set in Egypt”). Al-Kāẓim's is attested by Sunni historians as well as by Shia sources, and they differ over its manner and its end: al-Dhahabī has him held without hardship, the ziyāra tormented in the depths of prisons; al-Ṭabarī records his death without a cause, al-Mufīd a poisoning. The length of Joseph's imprisonment is a matter for commentators, from three years to fourteen; al-Kāẓim's can be dated, to a little under four years by the Shia dates (six, if the arrest is put in 793).
Genesis 39–41 · Psalm 105:17–21 · Qurʾan 12:33–42 · al-Dhahabī, Tārīkh al-Islām · al-Majlisī, Biḥār al-anwār 99:17 · al-Ṭabarī, Tārīkh 8 · al-Mufīd, al-Irshād 2
Hebrew BibleQurʾanShia tradition
What came after
Joseph's story ends in reunion and forgiveness: “his brethren also went and fell down before his face; and they said, Behold, we be thy servants” (Genesis 50:18), and in the Qurʾan his parents and brothers fall prostrate before him (Qurʾan 12:100). Al-Kāẓim's death divided his followers: the Wāqifa denied that he had died and kept the funds collected for him, against his son al-Riḍā (see his entry, “The Wāqifa: those who stopped”). Shia sources give the display of his body on the bridge two purposes, to show that he had died a natural death and to refute those who held that he would not die.
Genesis 50:18 · Qurʾan 12:100 · al-Ṭūsī, al-Ghayba · al-Irbilī, Kashf al-ghumma 2
More parallels
Hebrew BibleQurʾanSunni tradition
Freed by a ruler's dream
Both men were once freed by a ruler's dream. Pharaoh's dreams of the cows and the ears of grain brought Joseph out of prison (Genesis 41; Qurʾan 12:43–50). Al-Khaṭīb al-Baghdādī tells that al-Mahdī, who had brought al-Kāẓim to Baghdad and imprisoned him, dreamed of ʿAlī reciting to him, “Would ye then, if ye were given the command, work corruption in the land and sever your ties of kinship?” (Qurʾan 47:22), and sent him home to Medina (see his entry, “Al-Mahdī's dream”). Joseph interprets the king's dream; in al-Kāẓim's story the dream rebukes the king. The pairing is the site's own.
Genesis 41 · Qurʾan 12:43–50; 47:22 · al-Khaṭīb al-Baghdādī, Tārīkh Baghdād 13
Shia traditionQurʾan
The woman sent to the prisoner
A Shia story tells that Hārūn sent a beautiful slave girl to the Imam in prison, meaning her to tempt him. The Imam said he had no need of her, but she was left with him. When a servant was sent to see what had become of her, she was found prostrate, repeating quddūs, quddūs (holy, holy). She said that while the Imam prayed she had seen a garden with couches and servants, and from then on she gave herself to worship, saying that this was how she had seen the righteous servant (hākadhā raʾaytu l-ʿabd al-ṣāliḥ). The story is told in modern Shia lives (Aʿlām al-hidāya; Muṭahharī), and ʿAbbās al-Qummī (d. 1941) in Muntahā al-āmāl says that Ibn Shahrāshūb (12th century) told it at more length and al-Majlisī repeated it; in that version she repeats quddūs, subḥānaka, subḥānaka. Ibn Shahrāshūb's own text was not seen here. No source compares it with Joseph and the wife of al-ʿAzīz, and the pairing is the site's: in both a woman is set before the chaste prisoner, and in both she ends by bearing witness to him, the ʿAzīz's wife by confessing (Qurʾan 12:51), the slave girl by imitating his prayer. The order differs: Joseph's temptation sent him to prison, while the slave girl came to al-Kāẓim there.
Aʿlām al-hidāya: al-Imām Mūsā b. Jaʿfar al-Kāẓim; ʿA. al-Qummī, Muntahā al-āmāl 2 · M. Muṭahharī, A Survey into the Lives of the Infallible Imams, ch. 5 · Qurʾan 12:23–33, 51
Hebrew BibleNew TestamentShia tradition
Keepers won over
In Genesis the keeper of the prison “committed to Joseph’s hand all the prisoners” and “looked not to any thing that was under his hand; because the LORD was with him” (Genesis 39:22–23). In Acts, Paul and Silas in the prison at Philippi “at midnight… prayed, and sang praises unto God: and the prisoners heard them” (Acts 16:25), and after the earthquake their jailer asks, “Sirs, what must I do to be saved?” (16:30). In the reports of al-Kāẓim, ʿĪsā b. Jaʿfar's spy hears his prayer and ʿĪsā asks to be relieved of him, al-Faḍl b. Yaḥyā treats him with honour, and the slave girl turns to worship. In each the prisoner's piety reaches those set to guard him. The grouping is the site's.
Genesis 39:21–23 · Acts 16:25–34 · al-Mufīd, al-Irshād 2 · B. S. al-Qurashī, The Life of Imam Musa bin Jaʿfar al-Kazim, ch. 17
Sunni tradition
Prison as retreat: Ibn Taymiyya
The Ḥanbalī scholar Ibn Taymiyya, who died a prisoner in the citadel of Damascus in 728 AH (1328), told his pupil Ibn al-Qayyim that his enemies could do nothing to him, for his paradise and his garden were in his breast: his imprisonment was solitude, his killing would be martyrdom, and his exile from his land travel (inna ḥabsī khalwa, wa-qatlī shahāda, wa-ikhrājī min baladī siyāḥa). The true prisoner, he said, is the one whose heart is shut off from his Lord (al-maḥbūs man ḥubisa qalbuhu ʿan rabbihi). Like al-Kāẓim's prayer in Basra, the saying turns the cell into a retreat for worship. The two stand on opposite sides of a dispute the site records: Ibn Taymiyya opposed seeking help at graves such as al-Kāẓim's (see his entry, “A Sunni scholar at the grave”). The pairing is the site's own.
Ibn al-Qayyim, al-Wābil al-ṣayyib · Ibn Kathīr, al-Bidāya wa-l-nihāya 14 (year 728)
Hebrew BibleNew TestamentTalmud
Other righteous prisoners
Al-Kāẓim's entry already sets beside him Jeremiah in the cistern, “so Jeremiah sunk in the mire” (Jeremiah 38:6), Paul writing from his bonds (Philippians 1:12–14) and Rabbi Akiva teaching from a Roman prison (Pesaḥim 112a; Berakhot 61b): see “The righteous prisoner: Joseph, Jeremiah, Akiva”. Acts adds Peter, freed by an angel the night before Herod meant to bring him out: “a light shined in the prison: and he smote Peter on the side, and raised him up, saying, Arise up quickly. And his chains fell off from his hands” (Acts 12:7). Akiva, like al-Kāẓim, died at the hands of the power that held him: the Talmud tells that he was brought out of prison to be executed (Berakhot 61b).
Jeremiah 38:6 · Philippians 1:12–14 · Acts 12:6–11 · Babylonian Talmud, Pesaḥim 112a; Berakhot 61b
Shia traditionSunni traditionHistory
The prisoner's place, a place of prayer
Al-Kāẓim's title Bāb al-Ḥawāʾij, “the gate of needs”, is lived out at his shrine in Kāẓimayn, and Sunnis of Baghdad too sought help at his grave (see his entry, “A Sunni scholar at the grave”). Joseph's prison has its own shrine in popular devotion: a building at Abū Ṣīr (Būṣīr) near al-Badrashīn, south of Cairo, is shown by villagers as the prison of Joseph. They hold it sacred, come to it with vows, and believe that prayers are answered there, though, a 2022 report notes, nothing material proves the identification, and the former Grand Mufti of Egypt ʿAlī Jumʿa counts it a popular tradition.
al-Khaṭīb al-Baghdādī, Tārīkh Baghdād 1 · ʿArabi Post (30 July 2022), report on the “prison of Joseph” at Abū Ṣīr
History
Joseph, the prisoners' prophet
Joseph's place as the model prisoner is wider than any one comparison. Writing on Muslim political prisoners, Walaa Quisay and Asim Qureshi describe how prisoners draw strength from Sūrat Yūsuf, “the story of the Prophet of God who – like them – was a prisoner himself”. The Shia devotional comparison with al-Kāẓim belongs to this wider reading of Joseph's prison.
W. Quisay and A. Qureshi, “Political prisoners & the significance of Prophet Yusuf: Part 2”, The New Arab (26 April 2023)
Comparing the traditions
Author's note · comparing traditions
Hebrew BibleQurʾanMidrashTafsirShia traditionSunni tradition
Author's note: prison chosen, prison welcomed
The traditions give their prisoners different relations to the cell. In Genesis Joseph does not choose prison and says of it only that he did nothing to deserve it (Genesis 40:15); what makes it bearable is that “the LORD was with Joseph” (39:21), and the rabbis and al-Ṭabarī alike read his plea to the butler as a lapse of trust. In the Qurʾan he chooses it: “Prison is more dear than that unto which they urge me” (Qurʾan 12:33), prison against sin. In the Shia report al-Kāẓim welcomes it, as the answer to a prayer for time to worship (al-Irshād), prison as retreat; Ibn Taymiyya, from the other side of the dispute over graves like al-Kāẓim's, called his own prison solitude. The modern Shia writers who compare the two build on this difference: Joseph loved prison for what it kept him from, the Imam for what it left him free to do.
Genesis 39:21; 40:15 · Qurʾan 12:33 · Rashi on Genesis 40:23 · al-Ṭabarī, Jāmiʿ al-bayān (on 12:42) · al-Mufīd, al-Irshād 2:240 · Ibn al-Qayyim, al-Wābil al-ṣayyib
Author's note · comparing traditions
Hebrew BibleChristian traditionShia tradition
Author's note: the fettered leg
Neither Genesis, which says only that he was “bound” (Genesis 40:3), nor the Qurʾan says that Joseph was chained. The psalm does: “Whose feet they hurt with fetters: he was laid in iron” (Psalm 105:18), or in Coverdale's English “the iron entered into his soul”. The ziyāra of al-Kāẓim dwells on the same part of the body, the leg bruised by the rings of the fetters. Both texts are later than the story they remember, and both put into the prisoner's body what the narratives leave unsaid. The psalm goes on, “Until the time that his word came” and “The king sent and loosed him” (105:19–20); for al-Kāẓim the next words of his story, in the site's entry, are a herald on the bridge of Baghdad.
Psalm 105:18–20 · Book of Common Prayer (1662), Psalm 105:18 · al-Majlisī, Biḥār al-anwār 99:17 · al-Mufīd, al-Irshād 2