Work and legacy
Biographical accounts describe him dictating al-Mabsut while imprisoned. The work explains Hanafi rulings and their reasoning across a broad range of legal subjects.
His own remarks give imprisonment a firmer basis than later anecdotes alone: he says advice he offered led to confinement, without fully explaining the dispute. Released in 1087, he went to Marghinan and completed the remaining dictation of his commentary on al-Shaybani’s al-Siyar al-Kabir. The exact political cause remains uncertain, but imprisonment did not end the transmission of his legal learning.