Ibrahim Ben Adham was originally Prince of the city of Balkh, and had control of the riches of many provinces. One night when he was in bed he heard a sound of footsteps on the roof of his palace. "Who are you on the roof?" he cried out. An answer came, "I have lost a camel, and I am looking for it on this roof." "Well," he said, "you must be a fool for your pains, to look for a camel on a roof." "And thou, witless man," returned the voice, "is it while seated on a throne of gold that thou expectest to find the Most High? That is far madder than to seek a camel on a roof." At these words, fear seized the heart of Ibrahim, who spent the rest of the night in prayer, till the early dawn. The next morning he took his seat upon his throne, round which were ranged all the grandees of his kingdom and his guards, according to their rank, in the usual manner. All of a sudden Ibrahim perceived in the midst of the crowd a majestic figure, who advanced towards him unseen by the rest. When he had come near, Ibrahim asked him, "Who art thou, and what hast thou come to seek here?" "I am a stranger," he answered, "and I wish to stay at this inn." "But this is not an inn," answered Ibrahim, "it is my own house." "To whom did it belong before thee?" inquired the stranger. "To my father." "And before thy father, to whom did it belong?" "To my grandfather." "And where are thy ancestors now?" "They are dead." "Well then, is this house anything but an hotel, where the coming guest succeeds to the departing one?" So saying, the stranger began to withdraw. Ibrahim rose, ran toward him, and said, "I adjure thee to stop, in the name of the Most High." The stranger paused. "Who art thou," cried Ibrahim, "who hast lit this fire in my soul?" "I am Khizr, O Ibrahim. It is time for thee to awake." So saying, he disappeared. Ibrahim, pierced with sorrow, awoke from his trance, and felt a keen disdain for all earthly grandeur.

The next morning, being mounted and going to the chase, he heard a voice which said, "O Ibrahim, thou wast not created for this." He looked round him on all sides, but could see no one, and went on again. Presently again the voice was heard, proceeding, as it were, from his saddle, "O Ibrahim, thou wast not created for this." Struck to the heart, Ibrahim exclaimed, "It is the Lord who commands; His servant will obey." He thereupon dismounted, exchanged clothes with a shepherd whom he discovered close by, and began to lead the life of a wandering dervish, and became famous for his devoutness and austerity.

After some years, he undertook the pilgrimage to Mecca, and joined a caravan which was bound thither. The news of his coming having reached the chief men of the city, they all came out to meet him. Some of their servants, going on, met Ibrahim (whom, of course, they did not know), and asked him if Ibrahim ben Adham was approaching. "Why do you ask me?" he said. "Because the chief men of the city are come out to meet him." "And why make so much ado about that man," he said, "who is a sinner and an infidel?" "What right hast thou to speak thus of him?" they cried; and, seizing him, handled him roughly. After having beaten him they went on their way. Ibrahim said to himself, "Thou hast had thy deserts." When he was recognised afterwards, an ample apology was made to him, and he was conducted to Mecca, where he remained several years, supporting himself by money earned by his daily toil.

When Ibrahim left Balkh, he had a son who was then a child. When the latter became a young man, he asked, "Where is my father?" Whereupon his mother told him all that had occurred to his father. "Well," said the youth, "where is he to be found now?" "At Mecca," his mother answered. "Very well, I will go to Mecca," he replied, "and find my father." He set out, and when he arrived there, he found in the sacred precinct surrounding the Kaaba many fakirs clothed with rags. "Do you know Ibrahim ben Adham?" he asked them. "He is one of ourselves," one of them answered; "he has gone to gather and sell wood wherewith to buy bread and bring it us." The younger Ibrahim immediately went out of the city to seek his father. Presently he found an old man carrying a bundle of wood on his head, whom he recognised as his father. At this sight he was near weeping, but controlled himself, and walked behind him unobserved.

As for Ibrahim ben Adham, he carried his wood to the bazaar, sold it, and bought bread, which he took to his fellow-fakirs, and then performed his devotions. On the other hand, his son did not disclose himself, for he feared that to do so suddenly would cause his father to fly.

The next morning one of Ibrahim ben Adham's fellow-fakirs rose and went to his son's tent. He found the young man reading the Koran and weeping. The fakir advanced and saluted him, asking, "Who art thou? Whence comest thou? Whose son art thou?" "I am the son of Ibrahim ben Adham," replied the young man, "and I was never able to see my father until now; but I fear that if I make myself known to him, he will repulse me brusquely and flee away." "Come," said the fakir, "I will myself lead you to him."

Without further delay the wife and son of Ibrahim joined the fakir, and went to seek him. No sooner had his wife perceived him than she uttered a cry and said, "My son, behold thy father." All the bystanders burst into tears, while Ibrahim's son fell down in a swoon. When he came to himself he saluted his father, who returned his greeting, embraced him, and said, "O my son, of what religion art thou?" "Of the religion of Muhammad," he answered. "God be praised!" exclaimed Ibrahim. Then he asked, "Dost thou know the Koran?" "I know it," was the reply. "Dost thou read the books which treat of religious knowledge?" "I read them." "God be praised!" again exclaimed Ibrahim. Then he prepared to leave them and depart, but his wife and son would not let him, and began to weep. But Ibrahim, lifting up his eyes to heaven, prayed, "My God, come to my help," on which his son immediately died. The companions of Ibrahim asked him, "What is the meaning of this?" "When I saw my son," he answered, "my paternal tenderness was aroused. But immediately I heard a voice, 'What, Ibrahim! Dost thou pretend attachment to Us while all the while thy heart is engaged with another person? How can two loves co-exist in one heart?' On hearing this, I prayed to the Lord and said, 'O my God, if my love to this child makes Thee withdraw from me, take his soul or mine.' My prayer was heard, and He has taken the soul of my son." On one occasion Ibrahim is reported to have said, "Many nights in succession I sought to find the Kaaba unoccupied. One night when it was raining very hard, I at last found it so. I entered it, and lifting my heart to God, I said, 'O God, blot out my sins,' upon which I heard a Voice, which said, 'O Ibrahim, all over the world men ask Us the same thing; but if We blot out everyone's sins, whom shall We cause to share in the ocean of Our mercy?'" On another occasion he was asked, "Why hast thou given up thy rank and thy kingdom?" "One day," he said, "When I was seated on my throne, I looked at a mirror. I saw reflected in it my last resting-place, which was an obscure tomb, wherein I had no one to keep me company. The road whereby to reach the other world was long, nay infinite, and I had no provision for the way. I saw besides an upright judge, who questioned me so rigorously that I could return him no fit answer. Behold why my rank and my kingdom lost all value in my eyes, and why I abandoned them." "But why," continued the questioner, "didst thou flee Khorasan?" "Because," he said, "they kept on questioning me." "And why dost thou not marry?" "Is there any woman who would marry a man like myself, who am always hungry and naked? If I could, I would divorce myself; how then can I attach anyone to myself?"

Once Ibrahim asked a dervish, "Have you a wife and children?" "No," answered the dervish. "It is all then well for thee." "Why so?" asked the dervish. "Because," said Ibrahim, "everytime a dervish marries he is like one who embarks on a vessel, but when children are born to him he is like one who is drowning."

Seeing a dervish groaning, he said, "Doubtless thou hast bought this position of dervish at a low price." "What, Ibrahim," answered the other, "can the position of dervish be bought?" "Certainly," answered Ibrahim; "I have bought it at the price of royalty, and I find I have made a good bargain."

One day a man brought to Ibrahim a sum of a thousand pieces of gold, which he had vowed to offer him. "I do not take anything from the wretched," the latter said. "But," said the other, "I am a rich man." "What," answered Ibrahim, "you are as rich as that, and still seek to increase your wealth?" "As a matter of fact, I do." "Well then, you are more wretched than anyone," and he added, "Listen! I possess nothing, and I ask nothing of anyone. I have aspired after the condition of a dervish and found riches in it; others have aspired after riches and found poverty." Another person also offered Ibrahim a thousand pieces of gold, which he refused, saying, "You wish doubtless by means of this gold to erase my name from the list of dervishes."