Quick answer: Ahmad ibn Hanbal (164-241 AH / 780-855 CE) was a Baghdad hadith scholar who spent decades travelling to collect the sayings of the Prophet ﷺ before becoming the eponym of the Hanbali school. His lasting fame rests on the Mihna, a state inquisition in which the Abbasid caliphs tried to force scholars to declare the Quran a created thing. Ahmad refused, endured flogging and years of imprisonment, and was vindicated when the policy was reversed. Early sources agree on the broad shape of events and differ on some details, which this article notes as it goes.
A life built on travel and hadith
Ahmad ibn Hanbal was born in Baghdad, a city that had only recently become the centre of the Abbasid world. He was born in 780 in Baghdad and died there in 855, a Muslim theologian and jurist. He began to study hadith at the age of 15. Baghdad had scholars of its own, but Ahmad was not content to learn only from the capital.
He gave hadith study in Baghdad his full attention for seven years, then realised the main scholars of hadith did not all live in the capital, so he began to travel to Basra, Kufa, the Hijaz and Yemen. He is reported to have travelled five times to Basra, and a similar number of times to the Hijaz, often combining the pilgrimage with his studies. He travelled widely to study with the great masters and made five pilgrimages to Makkah.
On these journeys he studied under some of the most respected names of his generation. Abd al-Razzaq al-San’ani, the leading scholar of Yemen in the late second century, attracted students from across the Muslim world, including Ahmad ibn Hanbal. A meeting that shaped him more than any other took place in Makkah. A third influence came through his meeting with al-Shafi’i, who by then had worked out his method for deriving legal rulings, and when Ahmad studied under him he began to review the hadith and reports he had collected to work out their relevance to practical questions. He is remembered as one of al-Shafi’i’s students in Baghdad, though his own scholarship came to rest more heavily on hadith than on the analytical fiqh of his teacher.
A reputation built on precision, not convenience
Ahmad could have taken many hadith from books that were already circulating in his lifetime. He chose instead to hear them directly from their narrators. He could have learnt the hadiths from their books, but he preferred to hear them personally reported, which is recognised as a mark of excellence in hadith scholarship because it shortens the chain of transmission back to the Prophet and reduces the room for error.
That discipline produced his best known work. Among his works is the encyclopedia of hadith called al-Musnad, compiled during his lifetime and completed by his son Abdullah, containing more than thirty thousand hadith. The great biographer al-Dhahabi gave his life a long entry. The biography of Ibn Hanbal runs to at least 113 pages in al-Dhahabi’s Siyar A’lam al-Nubala. Al-Dhahabi recorded that contemporaries spoke of him as the foremost hadith authority of his age, a reputation Ahmad built decades before the trial that made him famous beyond the circles of hadith scholars.
A caliph adopts a new doctrine
The Abbasid caliph al-Ma’mun, who ruled from 813 to 833 CE, had come to accept a theological position associated with the Mu’tazila, a rationalist school that argued the Quran, as the speech of Allah, was created in time rather than an eternal attribute of Allah. In 827 CE al-Ma’mun publicly adopted the doctrine of createdness, and six years later instituted an inquisition known as the Mihna to secure agreement with the position.
Most scholars of the period, including Sufyan al-Thawri, Malik ibn Anas, Sufyan ibn Uyaynah and Yahya ibn Ma’in, held the opposite view, that the Quran as the speech of Allah is uncreated. The caliph nonetheless moved to make his position compulsory for judges and scholars holding public office. Al-Ma’mun ordered the scholars of the Ummah to be compelled to affirm that the Quran was created, despite the fact that virtually none of the era’s actual scholars held that view.
The inquisition begins
The compulsion came in stages. A first group of seven scholars was summoned and complied under the pressure of the caliph’s letter; seeing this work, al-Ma’mun escalated, and a second, harsher letter ordered a far wider test, with the governor of Baghdad assembling a substantial group of jurists and hadith scholars, including Ahmad ibn Hanbal, to read them the caliph’s letter and press each for an answer.
Al-Ma’mun did not live to see the policy through. He died only shortly after the Mihna started, leaving it, along with its chief architect Ibn Abi Du’ad, to his brother and successor al-Mu’tasim, who continued what he had inherited. Ahmad had been summoned but not yet brought before the caliph when this happened. It was under al-Mu’tasim that his ordeal reached its hardest point.
Flogged and imprisoned in Baghdad
Brought back to Baghdad, Ahmad was examined before the caliph himself. His successor al-Mu’tasim continued the Mihna with greater severity, and Ahmad was brought to Baghdad for interrogation before the caliph and a panel of Mu’tazilite theologians. Britannica’s summary of his life states the period plainly. In 833-835 he endured floggings and imprisonment rather than subscribe to the Mu’tazili doctrine of a created Quran, and he is remembered as a staunch upholder of Muslim traditionalism.
Wikipedia’s account of the Mihna gives the outcome of that session. Put to the question, Ahmad answered that the Quran was uncreated; al-Mu’tasim removed him from his post, imprisoned him, and had him flogged until he was unconscious. What happened next was not what the caliph expected. The people of Baghdad threatened to riot at news of his arrest, and al-Mu’tasim had him released; afterwards, occupied with building the new capital at Samarra and with military campaigns, he did not pursue the Mihna as more than a courtroom formality.
Where the reports differ
Not every detail of this episode is agreed upon. Early Sunni biographical accounts, built up by students such as Ahmad’s son Salih, describe a man who never conceded the point under any pressure. Some later historians have read the sources differently. A study of the interrogation by the historian Nimrod Hurvitz notes that this is contested ground. The scholar Van Ess has argued that Ibn Hanbal must have admitted that the Quran was created, since otherwise he would not have been released, while another historian, Cooperson, does not take a conclusive position and instead weighs the strengths and weaknesses of each competing account. The number of lashes he received, and the exact words exchanged in the caliph’s court, are also reported with variation across the early narrations, though all versions agree he was beaten until he could barely stand and that he did not sign any public declaration.
| Point | One account | Another account |
|---|---|---|
| Whether Ahmad ever conceded anything under duress | Sunni biographical tradition: he held his position throughout | Some historians (for example Van Ess): he may have given an answer that satisfied his captors |
| Year the Mihna formally ended | 848 CE, under al-Mutawakkil | 851-852 CE, when remaining prisoners were ordered released |
| Exact number of lashes in the Baghdad flogging | Lower counts, around twenty to thirty strokes | Higher counts reported in some narrations |
Harsher years under al-Wathiq
Ahmad’s release did not end the Mihna. The policy passed to al-Mu’tasim’s son. The Mihna continued during the reigns of al-Mu’tasim and al-Wathiq, and into the early reign of al-Mutawakkil. Under al-Wathiq the test turned deadly for at least one scholar. Later chronicles record that when al-Mutawakkil moved to close the affair, he removed the body of Ahmad ibn Nasr from public display, a detail that only makes sense if Ahmad ibn Nasr had already been executed and his body exhibited as a warning during the harsher years of the policy. Ahmad ibn Hanbal himself lived under restriction during this period. He kept teaching where he could, and at least one student is remembered for walking from Córdoba to Baghdad and learning from him in disguise while he was under political restriction, a measure of how far his reputation had already travelled.
Vindication under al-Mutawakkil
The Mihna ended under the caliph who succeeded al-Wathiq. Al-Mutawakkil is remembered for discarding the Mu’tazila, ending the Mihna, and releasing Ahmad ibn Hanbal. The process took more than a single order. At the same time the caliph removed the architect of the policy from power, reappointed a different chief judge, attempted to reconcile with Ahmad ibn Hanbal, and in March 852 ordered that all prisoners held on account of the inquisition be released, largely bringing the Mihna period to a close. Other accounts place the formal end two or three years earlier, in 848 CE, which is why historians describe the Mihna’s length differently depending on which closing event they count.
Final years and the Musnad
Ahmad spent his remaining years teaching and completing the vast collection of hadith that bears his name. He died on 2 August 855 CE, 12 Rabi al-Awwal 241 AH, in Baghdad at the age of 74, and was buried there. His legacy outlived the controversy that had nearly cost him his life. Ahmad ibn Hanbal founded the Hanbali school of jurisprudence and compiled the Musnad, one of the largest and most important hadith collections in Islamic history, and his refusal to affirm the doctrine of the created Quran made him a symbol of scholarly independence from political power.
His approach to law grew directly out of his hadith training. He is remembered for the position that a weak hadith was preferable to a strong analogy, a statement often cited in connection with his teachings. He opposed codifying the law into a fixed text, believing jurists needed the freedom to derive legal solutions from the Quran and the Sunnah case by case. That approach became the basis of the Hanbali school, the fourth of the four Sunni schools of law taught alongside the Hanafi, Maliki and Shafi’i schools today.

A timeline of the main events
| Year (AH) | Year (CE) | Event |
|---|---|---|
| 164 | 780 | Born in Baghdad |
| ~179 | ~795 | Begins studying hadith in Baghdad at age 15 |
| 186 | 802 | Travels to Basra, Kufa and the Hijaz; later meets al-Shafi’i in Makkah |
| 212 | 827 | Caliph al-Ma’mun publicly adopts the doctrine that the Quran is created |
| 218 | 833 | Al-Ma’mun institutes the Mihna; dies the same year; al-Mu’tasim continues it |
| 218-220 | 833-835 | Ahmad is interrogated, flogged and imprisoned in Baghdad |
| 227-232 | 842-847 | Al-Wathiq continues the Mihna; reports describe harsher enforcement |
| 232-238 | 847-852 | Al-Mutawakkil reverses the policy; remaining prisoners released |
| 241 | 855 | Dies in Baghdad at about 74 |
What the reader can take from his life
- Religious authority does not belong to political power. The Mihna was, among other things, a test of who gets to define Islamic doctrine. The episode is widely read as confirming that scholars, not rulers, hold that authority in Sunni Islam.
- Steadfastness is not the same as confrontation. Ahmad did not organise against the caliph or seek out the trial. He answered when asked, declined to say what he believed was false, and accepted the consequences without seeking martyrdom or public drama.
- Rigour in learning has a cost worth paying. His insistence on hearing hadith directly from their narrators, across five journeys to the Hijaz and repeated trips to Basra, is still cited as a model of care in transmitting religious knowledge.
أَحَسِبَ ٱلنَّاسُ أَن يُتْرَكُوٓا۟ أَن يَقُولُوٓا۟ ءَامَنَّا وَهُمْ لَا يُفْتَنُونَ ﴿2﴾ وَلَقَدْ فَتَنَّا ٱلَّذِينَ مِن قَبْلِهِمْ ۖ فَلَيَعْلَمَنَّ ٱللَّهُ ٱلَّذِينَ صَدَقُوا۟ وَلَيَعْلَمَنَّ ٱلْكَٰذِبِينَ ﴿3﴾
[2] Do the people think that they will be left to say, "We believe" and they will not be tried? [3] But We have certainly tried those before them, and Allah will surely make evident those who are truthful, and He will surely make evident the liars.
Scholars have long connected this verse to the experience of the early community and to later generations who faced pressure for holding to their beliefs, including the scholars tested during the Mihna.
مَنْ يُرِدِ اللَّهُ بِهِ خَيْرًا يُصِبْ مِنْهُ
Narrated Abu Huraira:Allah's Messenger (ﷺ) said, "If Allah wants to do good to somebody, He afflicts him with trials
Biographers of Ahmad ibn Hanbal have cited this hadith when explaining why his ordeal is remembered as a mark of honour rather than simple misfortune.
Sources
- Wikipedia: Ahmad ibn Hanbal
- Wikipedia: Mihna
- Wikipedia: Quranic createdness
- Wikipedia: Al-Mutawakkil
- Wikipedia: Muhammad ibn Ahmad ibn Abi Du’ad
- Britannica: Ahmad ibn Hanbal summary
- Encyclopedia.com: Mihna
- Muslim Heritage: Imam Ahmad ibn Hanbal
- Arab News: Scholar of renown, Imam Ahmad ibn Hanbal
- Nimrod Hurvitz: Who is the Accused? The Interrogation of Ahmad ibn Hanbal
- SunnahOnline: Ahmad ibn Hanbal
Header photo of Great Mosque of Samarra: Chris Hoare, CC BY-SA 4.0, via Wikimedia Commons.

