The shaykh and imam, Abu al-Qasim al-Hakim, al-Samarqandi, Ishaq ibn Muhammad ibn Isma'il the judge.
He took law and theology from the shaykh and imam Abu Mansur al-Maturidi, from Abu Bakr al-Juzajani, (from Abu Sulayman al-Juzajani), from Muhammad, from Abu Hanifa.
He came to Baghdad as a pilgrim. He took up the judgeship of Samarqand, and his conduct was praised. He was given the title al-Hakim ("the Sage") for the abundance of his wisdom and his admonition. He kept company with Abu Bakr al-Warraq and the shaykhs of his time, and took from them the rules of conduct of the Sufi path.
It is related that one of the men of God came to him one day and saw him busy judging between people. He threw his prayer mat onto the surface of the water in a cistern in front of him, and prayed on it. When he had finished, Abu al-Qasim said to him: My brother, this is nothing; it is only something that boys do. The real man is one who does many works among people while his heart is not heedless of the remembrance of God.
In Nafahat al-Uns: They said in describing Abu al-Qasim al-Hakim Ishaq ibn Muhammad al-Samarqandi, may God have mercy on him: From the Throne to the earth, his gaze was on nothing but God, glorified and exalted is He; and his dealings with people sought their portions rather than his own.
He died, may God have mercy on him, on the day of 'Ashura' in the year three hundred and forty-two.
I saw in one of the works of the Mawla 'Abd al-Latif al-Sirafi: Abu al-Qasim al-Hakim was asked: Is a sinner who repents of his sin better, or an unbeliever who returns from his unbelief to faith? He said: Rather the sinner who repents of his sin; because the unbeliever in the state of his unbelief is a stranger, while the sinner in the state of his sinning knows his Lord. When the unbeliever embraces Islam he is moved from the rank of the strangers to the rank of the knowers, and when the sinner repents he is moved from the rank of the knowers to the rank of the beloved, as God Most High said: ﴿God loves those who repent and loves those who purify themselves﴾ [al-Baqara: 222].
In the Waqi'at of al-Sadr al-Shahid, in the chapter on things disapproved, under the sign of the letter sin: When an unbeliever supplicates God Most High, is it permitted (to say that) his supplication is answered? The shaykhs differed about it:
Some of them said — among them Abu al-Hasan al-Rustughfani —: It is not permitted, because he does not supplicate God Most High, since he does not know Him; for even if he acknowledges Him, when he describes Him with what does not befit Him he has annulled his acknowledgement. As for what is related in the hadith, "The supplication of the wronged is answered, even if he is an unbeliever," its meaning is: (ingratitude for blessing, not unbelief in religion.
And some of them said): If it is sound, [it means] one ungrateful for blessing, not an unbeliever in religion; as in his saying, God bless him and grant him peace, "Whoever abandons prayer deliberately has disbelieved": its meaning is ingratitude for blessing, not unbelief in religion.
Some of them said: It is permitted to say that it is answered; among them Abu al-Qasim al-Hakim and Abu Nasr al-Dabusi; because of His words, relating of Iblis: ﴿He said: My Lord, then grant me respite until the day they are raised. He said: Then you are among those granted respite﴾ [al-Hijr: 36–37]; and this is an answer. Fatwas are given according to this.
(In al-Khulasa, in the third chapter of the Book of Things Disapproved: Fatwas are given according to the view of Abu al-Qasim.)
Also in al-Khulasa, in the fourth chapter of the Book of Things Disapproved: They attributed to the Sharh Hiyal al-Khassaf of Shams al-A'imma al-Halwani: that the shaykh and imam Abu al-Qasim al-Hakim was among those who accepted the ruler's gift; he used to borrow for all his needs, and with what he took from the gift he would pay his debt. The legal device in questions like this is that he buys something and then pays its price from whatever money he wishes. Abu Yusuf said: I asked Abu Hanifa, may God have mercy on him, about the legal device in a case like this, and he answered me with what we have mentioned.