One of the scholars reported to have been imprisoned by his non compromising stance was
Abu-Hanifah.
Māliki b. Anas.
Explanation
In 763, al-Mansur, the Abbasid monarch offered Abu Hanifa the post of Chief Judge of the State, but he declined the offer, choosing to remain independent. His student Abu Yusuf was later appointed Qadi Al-Qudat (Chief Judge of the State) by the Caliph Harun al-Rashid.In his reply to al-Mansur, Abū Ḥanīfah said that he was not fit for the post. Al-Mansur, who had his own ideas and reasons for offering the post, lost his temper and accused Abū Ḥanīfah of lying."If I am lying," Abū Ḥanīfah said, "then my statement is doubly correct. How can you appoint a liar to the exalted post of a Chief Qadi (Judge)?" Incensed by this reply, the ruler had Abū Ḥanīfah arrested, locked in prison and tortured. He was never fed nor cared for. Even there, the jurist continued to teach those who were permitted to come to him.
On the 15 Rajab 150(August 15, 767), Abū Ḥanīfah died in prison