No, Ahmad ibn Hanbal did not rebel against the caliphs of his time, and he is known for resisting the caliph's demand that he say the Qur'an was created without taking up arms, enduring imprisonment and flogging under al-Mu'tasim, and for telling others in Baghdad not to revolt.
- The trial (mihna) began under al-Ma'mun in 218 AH and continued under al-Mu'tasim and al-Wathiq until al-Mutawakkil ended it in the 230s AH, and Ahmad refused throughout to affirm the doctrine that the Qur'an is created.
- His position is stated in his creed, Usul al-Sunna: obey those in authority in what is lawful, do not rebel with the sword, and be patient with their injustice, as in hadith recorded in Sahih al-Bukhari and Sahih Muslim.
- He is reported to have advised the jurists of Baghdad against removing allegiance to al-Wathiq, and he did not join the revolt of Ahmad ibn Nasr al-Khuza'i in 231 AH.
- Other early scholars, including some reported of Abu Hanifa, held that rebellion against an oppressive ruler may be lawful in some conditions, so the question is one of a difference among the jurists.
Introduction
The question asks whether Ahmad ibn Hanbal rebelled against the caliph of his time. The question comes from the fact that he is remembered as the great figure of resistance to the caliph in the trial of the Qur'an, which can give the impression of a rebellion. The record, however, shows that his resistance was a refusal to obey in a matter of belief and not an armed uprising, and that he opposed armed revolt on principle. The sources are the biographies of Ahmad, notably those of al-Dhahabi in Siyar A'lam al-Nubala', Ibn al-Jawzi in Manaqib al-Imam Ahmad and the narrations of his sons Salih and 'Abd Allah.
This answer sets out the background of the trial, how Ahmad acted, the principle he held, the contrasting positions of others and the lessons that scholars draw.
The trial of the Qur'an
Under the Abbasid caliph al-Ma'mun (r. 198 to 218 AH), the doctrine of the Mu'tazila that the Qur'an is created was made the official belief of the state. In 218 AH, shortly before his death, al-Ma'mun ordered a test (mihna) of judges and scholars, requiring them to affirm the doctrine. The caliph al-Mu'tasim (r. 218 to 227 AH) and al-Wathiq (r. 227 to 232 AH) continued it. Most scholars agreed under threat, and some, like Muhammad ibn Nuh, died in custody, while Ahmad stood firm. His position, which he had learned from the early scholars, was that the Qur'an is the speech of Allah, uncreated, and that one should say no more than the Prophet (saw) and the Companions said.
Ahmad was brought in chains from Tarsus to Baghdad, and the news of al-Ma'mun's death reached him in the course of the journey. He was imprisoned in Baghdad, and under al-Mu'tasim he was flogged in front of the caliph and the court. The reports give about thirty lashes, as he was stripped and hung by his hands, and he is reported to have been unable to stand and then released after the caliph feared a public reaction. The reports say that he continued to refuse. Under al-Wathiq he was forbidden to teach or to meet people and stayed at home or in hiding for some years. Al-Mutawakkil ended the trial in 234 AH and restored the standing of the scholars of hadith, and in his reign Ahmad was honoured, though he was uneasy about the caliph's gifts and refused them.
What he did and did not do
Ahmad's response was a firm refusal to speak in a way that he held to be false, and a willingness to suffer. He did not raise an army, did not call for the removal of the caliph, and he continued to pray behind the officials of the state and to mention the caliph in the Friday sermon, according to the biographers. When he was asked whether the caliph should be addressed as a believer in spite of his demands, he is reported to have replied that he did not remove his allegiance. Imam al-Dhahabi writes that he became an exemplar of steadfastness for the Muslims.
The best known episode is from the time of al-Wathiq. In 231 AH Ahmad ibn Nasr al-Khuza'i, a scholar of hadith in Baghdad, planned a rising against al-Wathiq, and the plot was discovered. He was arrested, questioned about the Qur'an, and executed. Al-Dhahabi and Ibn Kathir record this. In the same period, a group of the jurists of Baghdad came to Ahmad to consult him about removing their allegiance to al-Wathiq, because of the trial and the harm that it caused. Ahmad is reported by the biographers, among them Ibn al-Jawzi, to have rejected the idea. He told them not to remove their hand from obedience and not to divide the community, and to be patient until the believers found relief or the wrongdoer was relieved of his office. He is reported to have said that he disapproved of shedding blood and of the disorder that follows.
The principle behind his position
Ahmad held the position of the hadith scholars of his time, and it is stated in his creed. The narration from him in Usul al-Sunna says that one should listen and obey the rulers, whether righteous or sinful, and that rebellion with the sword is not allowed, even if they are unjust. The texts in support include the hadith of Ibn 'Abbas: 'Whoever sees something from his ruler that he dislikes should be patient, for whoever leaves the community by a handspan and dies, dies a death of ignorance' (Sahih al-Bukhari and Sahih Muslim). In another, the Prophet (saw) was asked about rulers who deny the right of their subjects, and he said: 'Listen and obey, for upon them is what is placed on them, and on you is what is placed on you' (Sahih Muslim, from Wa'il ibn Hujr). The exception is clear unbelief for which there is clear proof from Allah, according to the hadith of 'Ubada ibn al-Samit (Sahih al-Bukhari and Sahih Muslim). The reasoning is the prevention of greater harm, since early rebellions had caused much bloodshed without success.
Obedience did not extend to disobeying Allah, and the Prophet (saw) said that there is no obedience to a creature in disobedience to the Creator (Musnad Ahmad, graded sahih by al-Albani). Ahmad's refusal to say that the Qur'an is created was an application of this principle. He refused to obey, and accepted the punishment, and did not resist by arms.
Other positions
The issue is one on which the early scholars differed. The Khawarij, the Mu'tazila and the Zaydi Shi'a held that rebellion against an unjust ruler is a duty or is allowed. Some Hanafi authorities report that Abu Hanifa gave support to the revolt of Zayd ibn 'Ali and later to that of Ibrahim ibn 'Abd Allah against al-Mansur, as in the discussion by al-Jassas in Ahkam al-Qur'an on the verse 2:124, 'My covenant does not include the wrongdoers'. Imam Malik is reported to have given a fatwa that an oath of allegiance given under compulsion is not binding, which was taken as support for the revolt of Muhammad al-Nafs al-Zakiyya, and he was beaten by the governor of Madinah. The scholars who held to non-rebellion are many, including Ahmad, al-Bukhari, Muslim, al-Nawawi and Ibn Taymiyya, who said that sixty years under an unjust ruler is better than a single night without one, while he also wrote of the duty to enjoin good and to forbid evil by speech. The contemporary discussion continues along these lines.
Conclusion
Ahmad ibn Hanbal did not rebel. He refused to affirm a doctrine he believed false and accepted prison and flogging, and he advised others not to raise arms against the caliph. His example shows resistance of conscience and patience, and the position that he held is that of the main body of the scholars of hadith, while other early scholars held that rebellion is permitted in certain conditions.
Those who study his life should read both his firmness on belief and his restraint in political action.
References
Sahih al-Bukhari and Sahih Muslim: Book of Tribulations (hadith of Ibn 'Abbas and 'Ubada ibn al-Samit); Sahih Muslim: Book of Leadership (hadith of Wa'il ibn Hujr); Musnad Ahmad: no obedience in disobedience
al-Dhahabi, Siyar A'lam al-Nubala'; Ibn al-Jawzi, Manaqib al-Imam Ahmad; Ibn Kathir, al-Bidaya wa'l-Nihaya; Ahmad ibn Hanbal, Usul al-Sunna (narrated by 'Abdus ibn Malik al-'Attar)
al-Jassas, Ahkam al-Qur'an; Ibn Taymiyya, Minhaj al-Sunna; Qur'an: 2:124