The imam, the companion of the Imam.
He is mentioned repeatedly in al-Hidaya and al-Khulasa.
His origin was from Damascus, from the village of Harasta.
His father came to Iraq, and Muhammad was born in Wasit.
He accompanied Abu Hanifa and took jurisprudence from him, then from Abu Yusuf.
He composed books and spread the knowledge of Abu Hanifa.
He transmitted hadith from Malik, [fol. 163a] recorded the Muwatta', and transmitted it from Malik.
He was the son of the sister of 'Abd Allah ibn Maslama al-Qa'nabi.
Ibn 'Abd al-Hakam said: I heard al-Shafi'i say: Muhammad ibn al-Hasan said: I stayed with Malik three years and heard from him seven hundred and some hadiths from his own mouth.
He transmitted from Mis'ar, al-Thawri and 'Amr ibn Dinar, among others.
The imam al-Shafi'i transmitted from him, kept close to him and benefited from him, and said: I took — in one version: I heard — from Muhammad ibn al-Hasan a camel-load, and I have not seen a corpulent man of better understanding than him.
He said: When he spoke, you would imagine that the Qur'an had been revealed in his dialect.
He said: I have not seen a corpulent man of lighter spirit than him.
He said: He used to fill the heart and the eye.
Abu 'Umar related it.
Also transmitting from him was Abu 'Ubayd al-Qasim ibn Sallam, who said: I have not seen anyone more knowledgeable of the Book of God than Muhammad ibn al-Hasan.
Yahya ibn Ma'in wrote down al-Jami' al-Saghir from him.
Ibrahim al-Harbi said: I said to Ahmad ibn Hanbal: Where do you get these subtle questions from?
He said: From the books of Muhammad ibn al-Hasan.
Abu Sulayman al-Juzajani transmitted the books from him, and al-Mu'alla ibn Mansur shared with him in that.
al-Rabi' ibn Sulayman transmitted, saying: al-Shafi'i wrote to Muhammad ibn al-Hasan — he had asked him for books and he had delayed them — and wrote to him:
Say to one the like of whom the eye of whoever has seen him / has never seen
And who is such that whoever has seen him / has seen those who came before him
Knowledge forbids its people / to withhold it from its people
Perhaps he will give it freely / to its people, perhaps
So he sent him the books at once.
He mentioned in the book al-Ta'lim that among the books al-Shafi'i requested was al-Siyar al-Kabir of Muhammad ibn al-Hasan.
Abu Thawr said: I heard al-Shafi'i say: I attended a session of Muhammad ibn al-Hasan at al-Raqqa, in which were a group of the Banu Hashim, Quraysh and others who studied learning, and Muhammad ibn al-Hasan said: I have composed a book; if I knew of anyone who could refute anything in it, whom camels could carry me to, I would go to him. And he mentioned a story.
Abu 'Ubayd said: I heard al-Shafi'i say to Muhammad ibn al-Hasan, when he had handed him fifty dinars and said: Do not feel embarrassed.
He said: If you were, in my eyes, one before whom I feel embarrassed, I would not have accepted your kindness.
He was also foremost in the science of Arabic, in grammar, in arithmetic and in acumen.
He held the judgeship for al-Rashid at al-Raqqa and remained there for a time; then he removed him from it; then he travelled with him to al-Rayy and appointed him judge there, and he died there in the year 187, being
fifty-eight years old, on the day on which al-Kisa'i died; and al-Rashid said: I have buried jurisprudence and Arabic in al-Rayy.
al-Yazidi lamented them both in fine verse, which is:
The world has come to an end, there is no immortality / and whatever splendour is seen will perish
For every man among us there is a watering-place of death / and he has no choice but to come down to it
[fol. 163b] Do you not see all-covering grey hair warning of decay / and that fresh youth does not return?
There will come to you what annihilated the generations that have passed / so be ready, for annihilation is at hand
I grieved for the chief judge Muhammad / and shed my tears, while the heart was stricken
And I said: When an affair grows obscure, who is there for us / to make it clear one day, now that you are lost?
And the death of al-Kisa'i after him pained me / and the wide earth almost swayed beneath me
It distracted me from all living and pleasure / and kept my eye sleepless while eyes slumbered
They were our two scholars; they perished and were taken away / and they have no equal among all the worlds