Long before famous Sufi orders like the Chishtis ever reached India, one scholar had already settled in Lahore.
He had already written Persian Sufism’s earliest formal treatise.

1. Before the Great Orders Arrived
1.1 Who was Ali Hujwiri?
Ali Hujwiri, also known as Data Ganj Bakhsh, was an 11th-century Sufi scholar. His fuller name was Abul Hasan Ali ibn Usman al-Jullabi al-Hujwiri. He was born around 1009 CE in Ghazni, in present-day Afghanistan. He eventually settled in Lahore, where he later died around 1072 CE. He wrote the Kashf al-Mahjub, an early and genuinely influential Persian treatise on Sufism as a whole. “Data Ganj Bakhsh” means “Bestower of Treasures.” This title refers specifically to spiritual enrichment, not material wealth of any kind.
2. Where the Title Came From
2.1 What story explains his famous title?
Tradition credits Hujwiri’s own famous title to another well-known saint entirely, not to himself. It says Khwaja Moinuddin Chishti, the founder of the Chishti order in India, once meditated at Hujwiri’s tomb in Lahore for forty days. At the end of that retreat, tradition says he broke into a Persian couplet praising Hujwiri as a perfect guide for both beginners and masters, calling him “Ganj Bakhsh,” treasure-giver.
2.2 How much of this story is actually verified?
Historians generally treat this specific couplet story as devotional legend, not verified biography of any kind. But it does capture something real. Later generations of Sufis, across many different orders, kept returning to Hujwiri’s shrine for inspiration long after his own lifetime had ended.
3. The Book and the Shrine
3.1 What makes the Kashf al-Mahjub so significant?
Kashf al-Mahjub means “Unveiling of the Hidden.” Here’s why it matters so much: it is considered the oldest surviving Persian treatise on Sufism. The book is remarkably wide-ranging. It sets out Sufi doctrine and practice, and surveys the views of different Sufi schools. It also profiles the lives of earlier Sufi masters, all within one single work. It also devotes separate chapters to specific topics, including poverty, divine love, and sama, the practice of devotional listening. Hujwiri’s classification of different Sufi groups was a pioneering effort. Later writers on Sufism drew on his framework for organising the tradition’s many strands. British orientalist Reynold A. Nicholson translated the Kashf al-Mahjub into English in 1911, opening it up to Western scholarship on Sufism for the first time.
3.2 What is Data Darbar like today?
- His own shrine, Data Darbar in Lahore, is the largest Sufi shrine in all of South Asia.
- The shrine still holds an annual urs, a festival marking Hujwiri’s own death anniversary. It draws over a million visitors each year, with communal prayers held throughout.
- Large-scale free food, or langar, is also offered to all who attend, regardless of background.
Data Darbar remains an active centre of charity and spiritual life in Lahore today, not just a historical monument. Hujwiri himself is widely regarded as the patron saint of Lahore, revered across different Sufi orders and sectarian lines alike. He is credited with helping spread Islam across South Asia through his own preaching. This came well before any of the region’s later, more famous Sufi orders had even arrived.
4. He Came First
4.1 How much earlier did Hujwiri arrive than the famous Sufi orders?
Hujwiri’s own death in 1072 predates every major Sufi order later linked to India. His own travels before settling in Lahore reportedly took him across a wide swathe of the Islamic world, from Syria to Central Asia. Along the way, he met and studied under other Sufi teachers. The Chishti order’s founder in India, Khwaja Moinuddin Chishti, arrived over a century afterward. The Suhrawardi, Qadiriyya, and Naqshbandi orders reached India later still.
4.2 Why did Ghazni matter to his own formation?
This makes Hujwiri one of the very earliest Sufi figures connected to the Indian subcontinent. Ghazni itself, his birthplace, had recently become the capital of a major regional Islamic power. This gave the young Hujwiri access to a genuinely cosmopolitan centre of learning before he ever settled in Lahore. A book meant as a serious survey of Sufi doctrine went on to shape how later generations understood the tradition itself, well beyond its own time and place.
5. What the PYQs Keep Testing
5.1 What has a recent PYQ asked about Ali Hujwiri?
CAPF ACs 2026 asked candidates to match four Sufi works with their genre. Kashf-ul Mahjub, Ali Hujwiri’s own book, was correctly identified as a manual of Sufi thought, distinct from later works like conversation-records and letter-collections. Source: CAPF ACs 2026 Q28.
- CAPF ACs 2026: matched four Sufi works to their genre, including Hujwiri’s own Kashf-ul Mahjub, a manual of Sufi thought.
- Ali Hujwiri (Data Ganj Bakhsh), born c. 1009 in Ghazni, settled in Lahore and died there around 1072.
- He wrote the Kashf al-Mahjub, the oldest surviving Persian treatise on Sufism.
- His famous title, “Bestower of Treasures,” refers to spiritual enrichment, popularised by a later legend involving Khwaja Moinuddin Chishti.
- His shrine, Data Darbar, is South Asia’s largest Sufi shrine, drawing over a million visitors at its annual urs.
- His death in 1072 predates the Chishti, Suhrawardi, Qadiriyya, and Naqshbandi orders’ arrival in India by a century or more.
MCQs on Ali Hujwiri
Try 8 practice questions on his life, his book, and his place in Sufi history.
Question 1 of 1 Question 1 of 1 Question 1 of 1 Question 1 of 1 Question 1 of 1 Question 1 of 1 Question 1 of 1 Question 1 of 1
- All Medieval History Articles
- The Suhrawardi Order of Sufism — one of the major orders that reached India only after Hujwiri’s own lifetime.
- The Qadiriyya Order of Sufism — another later order, useful for comparing India’s Sufi timeline against Hujwiri’s earlier presence.
- The Naqshbandi Order of Sufism — a stricter, still later order, whose own key text is cited alongside Hujwiri’s Kashf al-Mahjub in the same PYQ.
- Sikhism and Sufism in Medieval India — the wider devotional landscape Hujwiri’s early presence in Lahore preceded by centuries.
Leave a Reply