Imam Abu Hanifa: The Merchant Who Became a Pioneer of Fiqh
بسم الله الرحمن الرحيم
In the Name of Allah, the Most Gracious the Most Merciful
Imam Abu Hanifa رَحِمَهُ ٱللَّٰهُ was a pioneer of fiqh—but he did not begin his life as a scholar. He was a wealthy merchant who, after being encouraged by a scholar to pursue knowledge, transformed the field of fiqh. Known for his piety, generosity and resilience against oppressive rulers, his timeless legacy has shaped Islamic scholarship.
This article opens a four-part series on the lives of the four great imams of Islamic jurisprudence—Abu Hanifa, Malik, al-Shafi‘i and Ahmad ibn Hanbal. Rather than focusing on their legal schools, the series explores their character, personality, piety and the political worlds in which they lived. This article examines Abu Hanifa’s life, contributions and enduring legacy.
Political Context
After the death of the Prophet ﷺ, Islam expanded from Arabia into North Africa and parts of Asia. During the rule of Umar ibn Al Khatab, former territories of the Persian Empire entered into Muslim control such as Greater Syria, Iraq and Egypt. New cities were founded in which some Sahabah (Companions) left Madinah and settled there. This included Abu Dardah in Syria and Abdullah ibn Mas'ud in Kufa.
They were tasked with teaching new converts the Quran and Sunnah. They trained the next generation of scholars, known as the Tabi'un (the followers) who learned from the Companions. During the Tabi'un period, many hadiths and judgments from the Companions were written down and circulated.
New specialisations of hadith and fiqh were slowly beginning to emerge. Many Ulamah (scholars) gathered in Makkah, Madinah, Kufa, Basrah and Damascus to teach, discuss and establish Islamic law.
The early years of Islamic scholarship were also plagued by political upheaval. After the death of Caliph Ali ibn Abu Talib, رضي الله عنه , kingship started to become prominent and many Muslims were oppressed. Knowledge began to decline when Hajajj ibn Yusuf, governor of Kufa massacred Sahaba such as Sa'id ibn Jubayr, Abdullah bin Umar and Abdullah ibn al-Zubayr. It was the later Tabi'un scholars who witnessed the final years of Umayyad rule and the rise of the Abbasid dynasty.
One of them was Abu Hanifa – considered a Ta’ibee after meeting Sahabah Anas ibn Malik. He became one of the great imams of Islamic jurisprudence, helping lay the foundations of Islamic law. His influence extended beyond scholarship, shaping the intellectual and political landscape of the Muslim world. (Nadwi, 2010, 23-4)
Early life
Abu Hanifa was born al-Nuʿman ibn Thabit, ‘Abu Hanifa’ was his kunyah (honorific) which became widely known. He grew up in Kufa during the reign of the Umayyad caliph ʿAbd al-Malik ibn Marwan.
Abu Hanifa had basic Islamic education in childhood. He learnt the Quran by heart and never abandoned reciting it. He also studied hadith and fiqh but ended his studies to support his father's business. His father was Thabit ibn Zawti al-Farisi, a silk merchant, who trained his son to succeed him. Abu Hanifa later ran a cloth store situated close to the Jaamie Masjid in Kufa, in the blessed home of Hadhrat Amr bin Huraith. (Saror, 2013, 11)
Relationship with His Family
Abu Hanifa’s father died when he was young and he was raised largely under his mother, whom he treated with great affection and regard. In Ramadan, he would accompany his mother to Tarawih prayer, never denying her request. When he later became a renown imam, he remained obedient and loving to her, even when she didn’t recognise her famous son’s expertise.
A report is attributed to Abū Hanifa himself. His mother once asked him to get a fatwā from a sermon-giver called Zur ah.
Abū Hanifa answered her question but she was not content with the answer from him; she said: ‘I will accept only Zur ah’s answer.’
Abū Hanifa accompanied her to Zur ah, who said: ‘You are more knowledgeable and more expert in fiqh.’
Abū Hanifa told him the fatwā he had given in answer. Only when Zur ah confirmed that his answer was as Abū Hanifa had said was his mother satisfied. Then Abū Hanifa accompanied her home.
(Nadwi, 2010 61)
This incident took place when Imam Abu Hanifa was already the Imam of Kufa and commanded great respect from the people, yet he never rebelled against his mother’s wish. He placed no conditions on respecting his parents and showed humility. In addition, he would give sadaqah (charity) on behalf of his parents and regularly made dua for them.
Journey to Becoming a Scholar
As a teenager Abu Hanifa was greatly influenced by his environment. Kufa was, along with Basrah and Madinah, a major focus for the evolving disciplines of the Islamic sciences. Caliph Ali had made it the caliphate’s capital. The city was a hub for Greek philosophical thought and Persian learning under Arab political administration. It harboured different groups such as the Alowites, Khawarij and Mutaziltes.
All knowledgeable seekers were centralised in Kufa. This was the climate in which Abu Hanifa started his fiqh journey – inspired by a life changing conversation.
He was once approached by Imam Amir al-Shaʿbi who was a colleague of Ibrahim al-Nakhai. Both al-Nakhai and al-Shaʿbi studied under Masruq, a student of Abdullah ibn Masʿūd.
It is transmitted that Abu Hanifa said, “One day I was going past ash-Sha‘bi who was sitting down. He called to me, ‘Where are you going?’
I said, ‘I am going to the market.’
He said, ‘I do not frequent the market. I am concerned with going to the scholars.’
I told him, ‘I rarely frequent them.’
He told me, ‘Do not be heedless. You must look into knowledge and sit with the scholars. I discern alertness and energy in you.’
That affected my heart and I ceased to frequent the market and began to turn to knowledge and Allah let me benefit from what he said.”
In his early twenties Abu Hanifa made the decision to shift from being a businessman to pursuing a career in the Islamic sciences. Before he formally began his scholarship journey, Abu Hanifa investigated different Islamic sciences to discover his interests. It was narrated by others including his famous student Abu Yusuf, that Abu Hanifa was asked:
“How did you happen to come to fiqh?”
He replied, “I will tell you. Success is from Allah and praise is His as He deserves and merits. When I wanted to learn knowledge, I looked at all the forms of knowledge and read some of them and thought about the end and usefulness of each.”
Imam Abu Hanifa studied kalam (theology) and travelled to Basra around twenty times, where he debated various theological groups, including the Ibadis, Mu'tazilites, Sufrites and other sects but found little benefit. He examined literature and grammar but was not interested, then poetry and felt its end was ‘eulogy, satire, lies and tearing apart the religion.'
He looked to Quran recitation which required extensive tafsir knowledge. He turned to hadith which had to be studied into old age, to the risk of being accused of ‘'lying and poor memory' when reciting narration chains. Finally, he discovered his interest:
“Then I turned to fiqh and no matter which way I looked at it, it only increased in esteem and I could not find any fault in it. I saw that it involved sitting with scholars, jurists, shaykhs and people of insight and taking on their character.’
(Abu Zahra, 1999, 122)
Relationship with His Teacher
At 22 years old, Abu Hanifa decided to learn fiqh and began his search for a suitable teacher. He chose Hammad ibn Abi Sulayman al-Kufi, a famous imam known as the master of Fiqh in Kufa. Sheikh Hammad had heard hadīths from Anas ibn Mālik, Hasan al-Basri, Said ibn Jubayr, Abū Wā il, Sa īd ibn al-Musayyab, Āmir al-Sha bi and Abdullāh ibn Buraydah. He was also a student of Abdullah ibn Mas'ud.
When Imaam Abu Hanifa first went to Hadhrat Hammaad bin Abi Sulaimaan, the latter asked him why he had come. With utmost respect Imaam Abu Hanifa said that he had come to learn the science of Fiqh. Hadhrat Hammaad instructed him to learn three laws each day but not more.
(Saror, 2013, 33)
Abu Hanifa’s main teacher was Sheikh Hammad whose circles he attended regularly. Their relationship was that Abu Hanifa greatly revered his teacher and Hammad had a deep fondness for his talented student. Abu Hanifa states about Hammad:
I remembered while his other students erred. He said, “Only Abu Hanifa should sit opposite me at the front of the circle.”
Abu Hanifa was keen on gathering knowledge. He did not exclusively study with Hammad only and travelled to gain knowledge from others. He studied with Zayd ibn ‘Ali, Zayn al-‘Abidin and Ja‘far as-Sadiq, who were Shi‘ite Imams, and Abdullah ibn Hasan. He stated:
“I learned the fiqh of ‘Umar, the fiqh of ‘Ali, the fiqh of ‘Abdullah ibn Mas‘ud and the fiqh of Ibn ‘Abbas from their companions.”
He considered independently teaching until he realised Sheikh Hammad’s invaluable knowledge. He narrated:
“I came to Basra and thought that I would not be asked about anything which I could not answer. Then they asked me about things which I could not answer so I decided that I would not leave Hammad until he or I died. I kept his company for eighteen years.”
(Abu Zahra, 1999, 125-7)
Abu Hanifa would venerate, esteem and respect his sheikh. He would put great effort to utilise every moment to learn from him, devoting himself to his service. His time with Sheikh Hammad extended beyond the study circle. They spent time together over the weekend, extending to festivals and holidays. Abu Hanifa even served his teacher’s family. He would visit them, run errands and acted as an assistant.
Hammad’s sister Atika narrated about Abu Hanifa in his twenties:
"Nu'man (Abu Hanifa) used to come to our door, carding our cotton, buying our milk, our vegetables, and the like.
When a man came to ask him about a matter, he would say, 'What is your question?' The man would say, 'Such and such.' He would then say, 'The answer to it is such and such.' Then he would say, 'Wait a moment,' and go into Hammad's room and say to him, 'A man came and asked about such and such, and I answered him with such and such. What do you say?' He would say, 'They told us such and such, and our companions said such and such.
Abu Hanifa stayed with Imaam Hammaad bin Abi Sulaimaan until he passed away in 120 A.H. Abu Hanifa was in his forties when his teacher died. He stated about his sheikh:
“I have not prayed a prayer since Hammad died without seeking forgiveness for him along with my parents, and I seek forgiveness for anyone from whom I learned knowledge or whom I taught knowledge.”
(al-Baghdadi, 1996, 334)
Abu Hanifa reportedly showed great humility to Sheikh Hammad, even avoiding extending his legs towards his teacher's house, which was only seven houses away, out of respect for him. Later on, Abu Hanifa began leading his teacher’s study circles, examining fatwa cases, analogies and examples. This method formed the foundation for the Hanafi school of fiqh.
Patience with People
During his career in jurisprudence, Imam Abu Hanifa learnt how to deal with people - especially in challenging situations. He was calm under pressure, and did not resort to ugly words or name calling when provoked.
He once argued about a question on which Hasan al-Basri had given a fatwa. He stated, “Hasan erred.”
A man said to him, “You say that Hasan erred, son of a whore!”
He did not redden or blanch. He said, “By Allah, Hasan erred and ‘Abdullah ibn Mas‘ud was correct.” He used to say, “O Allah, if someone is annoyed by us, our heart is open to him.”
On another occasion, a man who disliked Abu Hanifa began cursing him as he was teaching. He ignored him and ordered his students to do the same. Once the class ended the man followed him, continuing to abuse him until they reached
Abū Hanifa’s house who said
‘My brother, we are now at the doorstep of my house.
If you have anything more to say, say it, because I shall presently go in and you may not get another opportunity."
This did not mean he tolerated harshness, abuse or lacked emotion. He once warned a learned man who slandered him about the severity of cursing the scholars:
It is related that one of those with whom he debated shouted at him, “Innovator! Heretic!”
He rejoined, “May Allah forgive you. Allah knows that I am not that. I have not turned from Him since I knew Him and I only hope for His pardon and only fear His punishment.” He wept when he mentioned the Punishment. The man told him, “Pardon me regarding what I said.”
He said, “If any of the people of ignorance say something about me, I pardon them. As for the people of knowledge who say something about me, they are sinful.
The slander of the scholars will cause something to remain after them.”(Abu Zahra, 1999, 148)
His Worship and Piety
Abu Hanifa was a very devoted imam who was not only engrossed in debating and teaching. He read the Quran frequently. Some students claimed he read the Quran every day and slept a little.
Whenever he couldn’t come to a conclusion in regards to a ruling, he would tell his students, "It is because of some sin that I have committed (that I am unable to solve this).” He would then make 'Istighfaar' (seeking forgiveness and repenting) and at times make Wudhu to perform two Rakaats of Salaatul Taubah. Afterwards he would be able to come to a conclusion.
Abu Hanifa contemplated the Quran and its meanings deeply. Once, he sat for hours in the masjid contemplating one verse:
Yazeed bin Laith reports, "On one occasion the Imaam of the Masjid performed Isha Salaah, in which he recited Surah Zilzaal: [It describes the earth's final convulsion and the exposure of every deed]
So whoever does an atom’s weight of good will see it.
And whoever does an atom’s weight of evil will see it.
[99:7–8]
After the Salaah I saw Imaam Abu Hanifa sitting in deep thought, heaving a huge sigh. I left the Masjid as I did not wish to disturb his chain of thought and left the lamp burning. There was still a little oil left in the lamp. At Fajr time I returned to the Masjid and found the lamp still burning and Imam Abu Hanifa holding his beard and saying,
"O that Being who will reward one for even the smallest amount of good and punish one for the smallest amount of sin! Save Nu'maan from the fire, do not even take him close to the fire and enter him into Your abundant mercy.”
When I entered the Masjid, Imaam Abu Hanifa asked if I wished to take the lamp.
I informed him that I had already given the Fajr Adhaan. He instructed me not to inform anyone of what I had heard.
Similarly, his heart was filled with the fear of Allah and the Last Day - as shown in one encounter:
Imaam Abu Hanifa was once going somewhere when he accidentally trampled upon the toes of a young boy without realising.
The boy said, "O Sheikh! Do you not fear the retaliation of the Day of Qiyaamah?"
Imam Abu Hanifa fell unconscious on hearing the statement of this boy. When he regained consciousness, people asked him why he had fainted and he replied, "I feared that perhaps the statement of this boy had been divinely inspired by Allaah."
(Saror, 2013, 53-62)
Financially Supporting His Students
Imam Abu Hanifa was generous to all his students and paid for the education of his most gifted learners. One such was Imam Abu Yusuf, a dedicated student who was greatly inspired by his teacher. He became a judge under the caliphate of Harun al Rashid, and became the second greatest imam in the Hanafi school of thought.
This was due to Abu Hanifa’s investment in his student’s education. Abu Yusuf had been in great financial difficulty when studying under Abu Hanifa. His father removed him from class, stating the Imam was wealthy and he was not. When Abu Yusuf stopped attending, he informed his teacher of the reason. The Imam gave him a bag of coins and told him to continue attending class. Abu Yusuf narrates:
There were a hundred dirhams in the bag. A few days later, without me saying anything to him, he gave me another bag with coins and he continued providing for me and I was able to study with no worry."(Saror, 2013, 70)
Torture under the Umayyad Regime
During the last few years of the Umayyads, the caliphate succumbed to infighting and instability. Warring princes competed for power, excessively taxing the masses and mistreating non-Arabs. As a result, people began to search for alternative leadership. Amongst the Persian population, rebellion was growing, causing two families to gain support.
One was the Alawis—the descendants of Ali—and the other was the Abbasids, descendants of Abbas ibn ʿAbd al-Muttalib. They formed an alliance, with the Abbasids promising the Alawis a return to Islamic rule and positions within their future government.
The Abbasid movement began in the East, particularly in Khurasan, drawing support from groups dissatisfied with Umayyad rule. Iraq became the centre for political opposition – incorporating Basra and Kufa. The latter had already experienced rebellions, one being Zayd ibn Alī’s revolt against the Ummayads in 121 AH, during the reign of Caliph Hisham ibn Abd al-Malik. Imam Abu Hanifa supported Zayd ibn Alī morally and financially but did not participate in the actual revolt.
However, Abu Hanifa himself was becoming a political target due to his vast influence in the Islamic world, causing rulers to be threatened by him. This turned into persecution during the reign of Marwan al-Himar, the last Umayyad caliph before the Abbasid revolution.
Caliph Marwan had appointed Yazīd ibn Umar as governor of Iraq who selected famous jurists into high positions. He offered the post of qadi (judge) to Abu Hanifa, who refused. Furious, Yazīd declared on oath that he would compel him to accept the appointment, but Abu Hanifa said:
‘If Yazīd were to ask me to count the doors of the masjids, I would not agree to do it for him, not to speak of my sealing the death-warrant of a Muslim signed by him’
(Nadwi, 2010, 50)
Imam Abu Hanifa was severely punished. Everyday he was tied to a horse and given ten lashes, altogether receiving one hundred and ten lashes. He would be sent home, asked if he now accepted the post and would refuse again. He would then be returned, whipped, released and sent back. This continued over months, in which scars appeared on his face. He later said:
"I was not pained by this punishment as I was pained by the grief and agony that my mother had to endure in witnessing this.”
(Saror, 2013, 40)
Persecution Under Abbasids
The Abbasid dynasty achieved power in 132 AH (750), establishing its capital in Baghdad. Its first caliph was Abu al-Abbas, supported by a general called Abu Muslim who was later assassinated.
This set the precedent for Abbasid rule, as Caliph Abdul Abbas began to viciously target the Alawis, earning him the title al Saffah (The Butcher). This persecution continued with Abu Jafaar al-Mansur who succeeded his brother in 136AH. He continued the policy of atrocities against Umayyads and descendants of Ali ibn Abi Talib.
Imam Abu Hanifa sided with the Caliphate of the Alwais, lending his support to Ibrahim ibn Abdullah bin Hassan, when he rose up against the Abassids. This was after the murder of Ibrahim’s brother, Muhammad al-Nafs al-Zakiyya in Basra. Caliph al-Mansur ordered Kufa's governor Isa bin Musa to end the rebellion.
In 145 AH, the governor sent 5,000 men and a battle ensued in Bil Kumraa, near Kufa. Ibrahim bin Abdullah was killed. This had a severe impact on Ibrahim's supporters such as Abu Hanifa. Caliph Mansur ordered the governor to send Abu Hanifa to him, who was offered the post of judge. Once again, Imam Abu Hanifa refused the position.
He considered both the Umayyad and Abbasid caliphates unfit, citing their deviation from guidance and their massacres. If he had accepted the judge position it would've assisted in the oppression.
(Saror, 2013, 25-7)
Death and Burial
Unable to persuade Abu Hanifa, Caliph Mansur imprisoned him. By this point the imam had gained enough fame that the scholars continued to visit him during his imprisonment. Al-Mansur grew uneasy and it is alleged he had him poisoned. Imam Abu Hanifa passed away a few days later in 150 AH, either in Rajab, Sha bān or Shawwāl.
His body was washed by the Qaadi of Baghdad, Ḥasan ibn Umārah, who prepared him for burial. Imam Abu Hanifa's funeral was attended by more than 50,000 people. His janazah (funeral) was performed six times to accommodate the crowds. Imam Abu Hanifa was buried in eastern Baghdad in the Khaizraan Cemetery.
Qaadhi Hasan read the following words when his body was enshrouded:
“Abu Hanifa..! May Allaah have mercy upon you!
You fasted for thirty years, you never slept the night for forty years, and you were the greatest judge amongst us, the most ardent worshipper, the most abstinent, and the possessor of the most virtue. You passed away upon the Sunnat and upon piety. Your departure has left people in grief and the prestige of the Ulama has gone.”
(Saror, 2013, 27)
Conclusion
Imam Abu Hanifa رَحِمَهُ ٱللَّٰهُ was a transformational scholar whose legacy remains enshrined today through the Hanoi school of Fiqh. From businessman to pioneering jurist, he devoted himself to knowledge, honouring his teachers and supporting his students. His diligence, resilience and strength of character defined his life, as he stood against oppression and helped enshrine beneficial knowledge for the sake of Islam.
May Allah have mercy on Imam Abu Hanifa, and allow us to benefit from his life, preserve and continue his legacy to honour and advance Islamic scholarship.
Research Resources
JazakAllahu khair for reading. Please benefit the ummah by sharing this knowledge. Feel free to download this article for offline reading or consult the bibliography below.
-
al-Khatib al-Baghdadi, Tarikh Baghdad, vol. 13 (Beirut: Dar al-Kitab al-Arabi, 1966), p. 334.
Ahlulbayt Digital Library (2026) Al-Ikhtilaf fi al-Lafz wa al-Radd ala al-Jahmiyyah wa al-Mushabbihah, p. 49. Available at: (Accessed: 12 September 2026)
Abu Zahra, M. (1999) The Four Imams: The Lives and Teaching of their Founders. London: Dar Al-Taqwa.
Saror, Moulana Muhammad Uwais (2013) One Hundred Stories of Imam Abu Hanifah. Translated/edited by Mufti A.H. Elias. Karachi: Zam Zam Publishers.
Nadwi, Mohammad Akram (2010) Abū Ḥanīfa: His Life, Legal Method and Legacy. Oxford: Interface Publications Ltd and Kube Publishing Ltd.


The Golden Age was the peak of intellectual creativity. It produced famous figures like Ibn Sina, Al-Khwarizmi and Ibn al-Haytham. But the most important question is not what they achieved, but how Muslim societies could produce so many innovators in the first place. Creativity rarely emerges from isolated geniuses. We all have the capacity to learn, create and innovate, but the conditions must be right. This is through society establishing institutions, incentives and a shared value system which produces talented people. This article looks at religiously driven knowledge production in the Abbasid Golden Age, and how it fuelled creativity.