The shaykh, the knower of God, wholly turned towards God, guide of the Path, interpreter of the Reality, (imam of the knowers), qibla of the wayfarers, raiser of the banners of the Sunna, suppressor of the errors of innovation, delight of the eye of the saints, blaze on the face of the pure ones, the caller to God (glorified be He, on the path) of certainty, Muhammad ibn Hamza, known as Aq Shams al-Din, may his secret be sanctified.
He was of the progeny of the shaykh, the lordly knower Shihab al-Din al-Suhrawardi.
He was born in Damascus the well-guarded, then came as a boy with his father to the lands of Rum. He occupied himself with the sciences, excelled and surpassed others, and reached the rank of learning; then he became a teacher at the madrasa of 'Othmanjuq. He was inclined towards the path of Sufism. Some of the righteous urged him to attain to the service of Hajji Bayram, but he disapproved of him, because the shaykh Hajji Bayram used to beg and go round the markets for the needs of the poor and the debtors, along with the breaking of the ego that this involved at that time.
When the fame of the shaykh Zayn al-Din al-Khwafi reached him, he gave up teaching and set out towards him. When he reached Aleppo he saw in a dream that there was a chain on his neck whose end was in the hand of the shaykh Hajji Bayram in the city of Ankara. So he set out for the town of 'Othmanjuq, then went to the service of Hajji Bayram, and found him with his disciples reaping the crop. The shaykh paid no attention to him, and Aq Shams al-Din occupied himself in that work. When they had finished the work, food was brought to them and they distributed it among the poor, and they set aside a portion of the food for the dogs. Hajji Bayram paid no attention to Aq Shams al-Din and did not invite him to the food with them, so the shaykh Aq Shams al-Din sat with the dogs and set about eating with them. At that Hajji Bayram called him and said: "O Kawsaj, come near to me, for you have taken my heart."
So he occupied himself with him and acquired the path of the Sufis, and attained what he attained of lofty charismatic graces and sublime stations; his virtues are too many to be counted.
The shaykh Aq Shams al-Din was also a physician of bodies, and he has works on outward medicine. He used to treat the bodies of those who came to him just as he treated their spirits. It is said that the herbs would call to him and say: "I am a cure for such-and-such an illness."
It is related that Süleyman Celebi, son of the vizier Khalil Pasha, was qadi of the army in the time of Sultan Murad Khan, and he fell ill in the city of Edirne during the vizierate of his father Khalil Pasha. The shaykh Aq Shams al-Din was at that time in the city of Edirne, and the said vizier summoned the shaykh to pray for his son and treat him.
It is related of the shaykh 'Abd al-Rahim, known as Ibn al-Misri, one of the successors of the said shaykh, that he said: "I went with the said shaykh to the said patient. We went in to him, and there with him were the sultan's physicians around the patient, preparing medicines for the treatment. The shaykh said to the physicians: 'What illness is this?' They said: 'Such-and-such an illness.' The shaykh said: 'Treat him with the remedy for phrenitis (sirsam).' The physicians rejected this from him, and they left the patient.
The shaykh took an inkwell and wrote the names of the medicines, and they brought them, and he treated him with them, and the benefit appeared at once. Despite that he did not ask about the patient's condition." The shaykh 'Abd al-Rahim — that is, al-Misri — said: "When we came out from the patient, he said to me: 'Had I kept silent about him, the physicians would have destroyed him with their treatment.'"
Among the dearest of his companions and successors were the knower of God 'Abd al-Rahim, known as Ibn al-Misri; the knower of God, the shaykh Ibrahim ibn Husayn, al-Siwasi by birth and al-Qaysari by place of burial; the knower of God Hamza, known as al-Shaykh al-Shami; and Ibn al-'Attar, the shaykh Muslih al-Din. Among his excellent sons were the shaykh Sa'd Allah, the shaykh Fadl Allah, the shaykh Amr Allah, and the shaykh, the knower (Hamd Allah), well known as Hamdi Celebi, author of the poem in the Turkish language on Joseph, peace be upon him.
It is related that Sultan Abu al-Fath Mehmed Khan son of Sultan Murad Khan, when he intended the conquest of Constantinople, summoned him to the jihad, and also summoned the shaykh Aq Biyiq, and sent to them the late Ahmad Pasha ibn Wali al-Din [to ask them] to set out for the conquest of Constantinople. The shaykh Aq Biyiq was an enraptured man (majdhub), and nothing came from him. As for the shaykh Aq Shams al-Din, he said: "The Muslims will enter the fortress from such-and-such a place on such-and-such a day at the time of the late forenoon, and you will be at that time with Sultan Mehmed Khan."
The author of al-Shaqa'iq said: One of his sons related to me that that time came and the fortress had not been opened, and great fear befell us on the part of the sultan. "So I went to him while he was in his tent, and one of his servants was standing at the door and prevented me from entering, because he had instructed him that no one should come in to him. So I lifted the ropes of the tent and looked, and there he was prostrating on the dust with his head uncovered, beseeching and weeping. I had not raised my head when he stood up and said 'Allahu akbar', and said: 'Praise be to God, God Most High has granted us the conquest of the fortress.'"
He said: "I looked towards the fortress, and lo, the army had entered all together." So God Most High granted the conquest through the blessing of his prayer. His supplication would pierce the seven heavens, then subside, and fill the horizons with its blessing.
When Sultan Mehmed entered the fortress he looked beside him, and there was Ibn Wali al-Din, and he said: "This is what the shaykh foretold." And he said: "I did not rejoice at this conquest; my joy is only at the existence of such a man in my time." Then a day later Sultan Mehmed Khan came to the shaykh's tent and found him lying down, and he did not rise for him. Sultan Mehmed Khan kissed his hand and said: "I have come to you for a need." He said: "That I enter the retreat (khalwa) with you for some days." The shaykh said: "No." He pressed him repeatedly, and he kept saying: "No." The sultan became angry and said: "One of the Turks comes to you and you let him enter the retreat for a single moment!" The shaykh said to him: "If you enter the retreat you will find a delight there, and the sultanate will fall from your eyes and its affairs will be disordered, and God will hate us. The purpose of the retreat is the attainment of justice, so you must do such-and-such." And he told him the counsels he needed.
Then he sent two thousand dinars, and he did not accept. When Sultan Mehmed Khan came out he said to Ibn Wali al-Din: "The shaykh did not stand for me," and showed that he was affected. Ibn Wali al-Din said: "He saw in you pride because of this conquest, which was not made easy for the great sultans, and the shaykh is an educator, so he wished to ward off pride from you."
Then Sultan Mehmed Khan asked the shaykh Aq Shams al-Din to identify for him the place of the grave of Abu Ayyub al-Ansari, may God be pleased with him; it was reported in the books of history that his grave was at a place near the wall of Constantinople. The shaykh came to the place that is well known at this time and said: "I see light in this place; perhaps his grave is there." He came to the place of the grave and concentrated for a time, then said: "I have met with his spirit, and he congratulated me on this conquest and said: 'May God reward your effort, that you have delivered me from the darkness of the people of unbelief.'" The sultan was told of that, and the sultan came to that place and said to the shaykh: "I believe you, but I ask you to identify for me a sign that I may see with my own eyes, so that my heart may be at rest by it." The shaykh concentrated for an hour, then said: "Dig this place on the side of the head to the depth of two cubits; a marble slab will appear to you with Hebrew writing on it, whose interpretation is this," and he stated the words. When it was dug to the depth of two cubits, a marble slab appeared with Hebrew writing on it; someone who knew it read it and interpreted it, and lo, it was what the shaykh had stated.
Sultan Mehmed was astonished and was overcome by a [spiritual] state, so that he almost fell had they not caught him. Then he ordered the building of the dome over that place, and ordered the building of the mosque and the cells, and asked the shaykh to reside in it with his disciples, but he did not do so; he asked permission to return to his homeland, and the sultan gave him permission to please him.
When he crossed the sea he said to the eldest of his sons, the shaykh Sa'd Allah: "When I crossed the sea my heart was filled with light, and what I had in Constantinople was spoiled for it by the darkness of unbelief there." When he had travelled for an hour, a man from the rough folk of the lands of Rum met him, riding a fine horse to which everyone's heart would incline. The man went on without paying attention to the shaykh or greeting him, and had gone only a little way (when he came back and dismounted from his horse) and said to the shaykh: "I give you this horse." The shaykh signalled to his son, who dismounted from his horse and gave it to that man, and [the shaykh] rode the man's horse. Then the shaykh's son asked him about this matter, and he said: "If a generous man had a servant who was obedient to him, and one day [the servant] asked him for a trifling thing, would he refuse it to him?" His son said: "No." The shaykh said: "And I for thirty years have not gone out of obedience to God Most High; so when my heart inclined to this horse, God Most High inspired that man so that he gave it to me."
Then the shaykh arrived at his homeland, the town of Göynük, and stayed there for a time; then he died and was buried there. He is visited and blessing is sought from him, and now there is a mosque and a zawiya over him.
He has works, among them a treatise on Sufism which he named Risalat al-Nur, another treatise on repelling the attacks on the Sufis, and a book on the science of medicine in which he collected beneficial remedies that he had tested for every illness.