Humans of History

from the archive · Medieval era

Ali Hujwiri

1009 – September 25, 1072 · theologian · writer · mystic

By The Keeper · Published
AI-assisted writing, automatically checked. Editorial process

Ali Hujwiri was an eleventh century Sufi mystic, theologian, and writer from Ghazni who settled in Lahore and composed the Kashf al-Mahjub, the earliest surviving treatise on Sufism written in Persian. Born in 1009 in the Ghaznavid capital, he traveled across much of the Islamic world before spending his final decades teaching in the Punjab, where he died on September 25, 1072. Revered in South Asia as Data Ganj Bakhsh, the bestower of treasures, he remains one of the most visited saints of the subcontinent, and his tomb complex in Lahore, the Data Darbar, draws millions of pilgrims each year. His book still serves as a standard manual for students of Islamic mysticism nearly a thousand years after it was written.

Early Life

Abu'l-Hasan Ali ibn Uthman al-Jullabi al-Hujwiri was born in 1009 in Ghazni, the capital of the Ghaznavid Empire in what is now eastern Afghanistan [1]. His two family names, Jullabi and Hujwiri, come from Jullab and Hujwir, two districts of Ghazni where his relatives lived, and he is remembered by the second of them [1]. The city of his childhood was then at the height of its power under Sultan Mahmud of Ghazna, whose court attracted poets, scholars, and jurists from across the Persian speaking world.

Anyone asking who was Ali Hujwiri must rely heavily on his own book, since the Kashf al-Mahjub contains nearly all the personal detail that survives about him. He was raised in a family with religious learning on both sides, and he mentions relatives who were themselves devoted to piety and scholarship [2]. He received a conventional education in the Islamic sciences, studying the Quran, hadith, theology, and law, and he followed the Hanafi school of jurisprudence throughout his life [3].

His formation as a mystic began under Abu'l-Fadl Muhammad ibn al-Hasan al-Khuttali, a master in the spiritual lineage of Junayd of Baghdad, the great ninth century representative of the sober school of Sufism [1]. Hujwiri also names Abu'l-Abbas al-Shaqani among the teachers who shaped him. From Khuttali he absorbed the conviction that mystical experience must remain anchored in the revealed law, a principle that runs through everything he later wrote [2].

Travels and Training

Like many Sufis of his generation, Hujwiri spent years on the road. By his own account he journeyed through Khurasan, Transoxiana, Iraq, Syria, and the borderlands of Turkestan, seeking out shaykhs, visiting tombs of earlier saints, and testing the doctrines he encountered against his own experience [1]. He records meetings and conversations with dozens of masters, and these travel notes make his book a valuable eyewitness record of eleventh century religious life across a vast region [2].

His wanderings were not free of trouble. He writes candidly that during a stay in Iraq he fell into serious debt, an episode he describes with rueful honesty as a lesson in detachment from worldly means [1]. He also confesses that he was once married, unhappily, for about a year, and that the experience nearly wrecked his spiritual life until, as he puts it, God delivered him from the attachment [1]. Such frank admissions are rare in medieval hagiography and give his writing an unusually personal texture.

During these years he composed several works besides the book that made him famous. He mentions a collection of his own poetry, a treatise on faith, a study of the sayings of the mystic Hallaj, and other writings, all of which are now lost [3]. He complains in the Kashf al-Mahjub that one borrower kept his poetry collection and circulated its contents under a different name, which is why he took care to place his own name repeatedly in the text of his surviving book [1].

The Kashf al-Mahjub

Hujwiri's lasting achievement is the Kashf al-Mahjub, the Unveiling of the Veiled, generally regarded as the oldest formal treatise on Sufism in the Persian language [1]. Earlier manuals of the mystical path, such as those of Sarraj, Kalabadhi, and Qushayri, had been written in Arabic. By choosing Persian, Hujwiri opened the systematic literature of Sufism to a far wider audience in Iran, Central Asia, and eventually India, and his decision helped establish Persian as a major vehicle for mystical writing [2].

The book was written in Lahore, late in his life, in answer to questions put to him by a fellow townsman from Ghazni named Abu Sa'id al-Hujwiri [1]. Its plan is ambitious. Hujwiri opens with chapters on knowledge, poverty, and the meaning of the word Sufi, then surveys the lives of earlier mystics from the Prophet's companions down to his own contemporaries. A distinctive central section analyzes twelve schools of Sufi thought, describing the doctrine of each and marking one, the followers of Hallaj as he understood them, as outside acceptable bounds [3]. The final portion explains the practical rules of the path: prayer, fasting, pilgrimage, companionship, and the etiquette of listening to music.

Throughout the work Hujwiri argues for a sober, law abiding mysticism in the tradition of Junayd. He insists that no inward state can excuse neglect of outward religious duty, and he criticizes impostors who wore the patched frock of the Sufi without its discipline [2]. Among notable Ali Hujwiri facts, scholars often single out his balanced treatment of controversial figures: he defends Hallaj's sincerity while rejecting the doctrines attributed to him, a careful position that later writers frequently echoed [3]. The English translation published by Reynold A. Nicholson in 1911 brought the book to Western scholarship and remains in print more than a century later [1].

Settlement in Lahore

At some point in the mid eleventh century Hujwiri moved to Lahore, which the Ghaznavids had made the administrative center of their Indian territories. A widely reported tradition holds that he went reluctantly, on the instruction of his teacher, and arrived to find that Husayn Zanjani, the Sufi previously sent to the city, had just died [4]. Whatever the exact circumstances, Lahore became his home for roughly the last two decades of his life.

In the Punjab he taught, preached, and wrote, becoming one of the earliest Sufi figures to establish a lasting presence in South Asia [2]. Later tradition credits him with drawing many local people to Islam through instruction and personal example, and though the details belong to hagiography rather than documented history, his role as a founding figure of Indian Sufism is accepted by modern scholars [4]. He built a mosque in the city and gathered students around him, and the Kashf al-Mahjub itself, composed during these Lahore years, shows him responding to the practical questions of seekers rather than writing for a courtly audience [1].

He complains in the book that he wrote it far from his library, without access to the works he had collected during his travels, a remark that historians read as evidence of the conditions of a frontier posting [1]. The complaint also explains the book's character: it depends on memory, personal observation, and judgment rather than extensive quotation, which is precisely what makes it original.

Death and Shrine

Hujwiri died in Lahore on September 25, 1072, and was buried beside the mosque he had founded [4]. His grave soon became a place of visitation, and over the following centuries rulers and devotees enlarged it into the shrine complex known as Data Darbar, today one of the largest Sufi shrines in South Asia [5].

The honorific by which he is universally known in the subcontinent, Data Ganj Bakhsh, means the giver who bestows treasures. Tradition attributes the phrase to Mu'in al-din Chishti, founder of the Chishti order in India, who is said to have spent a period of retreat at the tomb in the twelfth century and declared Hujwiri a perfect guide for seekers [2]. Whether or not the story is historical, it reflects the standing the shrine acquired: later Sufis of nearly every order treated a visit to Data Darbar as an essential act of respect before beginning work in India [4].

The shrine remains at the center of Lahore's religious life. Its annual death anniversary festival, the urs, draws vast crowds, and free kitchens attached to the complex feed thousands of visitors daily [5]. The site has also known tragedy: in July 2010 suicide bombers attacked the shrine during evening crowds, killing more than forty people, an assault that provoked nationwide grief and condemnation in Pakistan [6].

Legacy

Any Ali Hujwiri biography ends with a paradox: a scholar who left a single surviving book became one of the most venerated figures in South Asian Islam. The Kashf al-Mahjub was read as a manual of the path for centuries, copied across the Persian speaking world, translated into Urdu, English, and other languages, and cited by later masters as an authority on doctrine and conduct [2]. Nicholson, who translated it, judged it among the most authoritative and instructive of all Persian treatments of Sufism [1].

Among Ali Hujwiri achievements, historians count three above the rest: he produced the first Persian synthesis of Sufi teaching, he preserved unique information about eleventh century mystics and schools that would otherwise be lost, and he planted Sufism in the Punjab a full century before the great orders arrived [3]. His insistence that mystical life must stay within the boundaries of Islamic law shaped the mainstream of South Asian Sufism, giving it the sober, scholarly character that distinguished many of its later representatives [2].

In Pakistan today his memory is part of public culture. Streets, hospitals, and institutions in Lahore carry the name Data Ganj Bakhsh, and the city itself is affectionately called Data ki Nagri, the city of Data [5]. Nearly ten centuries after his death, the mystic from Ghazni still presides over the spiritual landscape of the region he adopted, honored equally by scholars who study his book and by pilgrims who may never read it [4].

Questions & Answers

When was Ali Hujwiri born?
Ali Hujwiri was born in 1009 in Ghazni, the capital of the Ghaznavid Empire in present day Afghanistan. His names Jullabi and Hujwiri refer to two districts of that city where his family lived.
What is Ali Hujwiri famous for?
He is famous for writing the Kashf al-Mahjub, the oldest surviving Persian treatise on Sufism, and for being one of the earliest Sufi teachers to settle in South Asia. His shrine in Lahore, the Data Darbar, is among the most visited in the subcontinent.
Why is Ali Hujwiri called Data Ganj Bakhsh?
The title means the giver who bestows treasures. Tradition attributes it to Mu'in al-din Chishti, who is said to have kept a spiritual retreat at Hujwiri's tomb and praised him as a perfect guide for seekers.
When did Ali Hujwiri die?
He died in Lahore on September 25, 1072, and was buried beside the mosque he had founded there. His tomb grew into the Data Darbar shrine complex, which remains a major center of devotion in Pakistan.
What is the Kashf al-Mahjub about?
The Kashf al-Mahjub is a systematic guide to Sufism covering doctrine, the lives of earlier mystics, twelve schools of Sufi thought, and the practical rules of the spiritual path. Hujwiri wrote it in Lahore in answer to questions from a fellow townsman, and it argues that mysticism must remain grounded in Islamic law.
Where is Ali Hujwiri's shrine located?
His shrine, known as Data Darbar, is in the old city of Lahore, Pakistan. It is one of the largest Sufi shrines in South Asia and hosts an annual urs festival that draws enormous crowds.

References

Every record in this archive is kept against verifiable sources.

  1. [1]Reynold A. Nicholson (translator). The Kashf al-Mahjub: The Oldest Persian Treatise on Sufiism, by Ali ibn Uthman al-Hujwiri. Luzac and Co., E. J. W. Gibb Memorial Series, 1911. Book
  2. [2]Annemarie Schimmel. Mystical Dimensions of Islam. University of North Carolina Press, 1975. Book
  3. [3]Hidayet Hosain. Hudjwiri, Encyclopaedia of Islam, Second Edition. Brill. Source
  4. [4]al-Hujwiri. Encyclopaedia Britannica. https://www.britannica.com/biography/al-HujwiriWeb
  5. [5]Carl W. Ernst. The Shambhala Guide to Sufism. Shambhala Publications, 1997. Book
  6. [6]Suicide bombers kill dozens at Data Darbar shrine in Lahore. BBC News, July 2010. News
  7. [7]A. J. Arberry. Sufism: An Account of the Mystics of Islam. George Allen and Unwin, 1950. Book
The permanence seal of the archive

preserved for ever

Sealed on the blockchain. Tap the seal to verify.

This record is inscribed on the Arweave blockchain, a permanent public ledger replicated across hundreds of independent machines. The copy there cannot be edited, withdrawn, or lost. It will outlast this website, its server, and its keeper.

help the keeper

Spotted an error, or hold a source the archive lacks? Every record can be corrected. Submissions are reviewed against authentic references before any change is made.

share this record

Pass this life along. The archive grows by being read.

The seal of the archive

entered into the archive

kept by The Keeper