About Ali Hujwiri
Lived 1009 – 1072 (aged 63). Ali Hujwiri was a theologian, writer and mystic.
Abu al-Hasan Ali ibn Uthman al-Jullabi al-Hujwiri (; –1072/77) is his full name as reconstructed by modern scholarship. The name he himself used, by his own nisba, was al-Jullabi, a form he employs consistently in rather than the “al-Hujwiri” that later became standard. He is known reverentially, chiefly in South Asia, by several further names that developed after his death: Data Ganj Bakhsh (, “treasury bestower”), Data Sahib , and, less commonly, Shaykh Syed Ali al-Hujwiri. He was an Islamic scholar and mystic who authored , the earliest treatise on Sufism in the Persian language. Born in the Ghaznavid Empire, al-Hujwiri is believed to have contributed significantly to the spread of Islam in South Asia through his preaching.
Al-Hujwiri is venerated as the primary saint of Lahore, Pakistan, by the Sufis of the area; his tomb-shrine, known as the Data Darbar, is one of the most frequented shrines in South Asia. It is currently Pakistan’s largest shrine by annual visitors and complex size and, having been nationalised in 1960, is managed by the Department of Awqaf and Religious Affairs of the Punjab. The mystic remains a “household name” in the daily Islam of South Asia. In 2016 the Government of Pakistan declared 21 November a public holiday marking the commencement of his three-day death anniversary.
Chronology and sources
The dates for his birth and 1072 for his death are those reproduced across most tertiary sources, but they rest on thinner ground than the infobox precision suggests. Almost nothing about Hujwiri’s life survives outside his own scattered autobiographical remarks in . The Encyclopaedia Iranica entry by Gerhard Böwering treats his birth year as unrecoverable and gives a death range of 465–469 AH (1071–1077). The Encyclopaedia of Islam (second and third editions) gives around 1009 for his birth, describing him as an “Iranian mystic, born at Hujwir, a suburb of Ghazna.” A precise day and month of death, as sometimes reproduced online, does not appear in either encyclopaedia and should be read as an unsourced later addition. Reynold Nicholson’s 1911 introduction discusses several competing chronologies without settling on one; any single precise date currently in circulation is an editorial choice made after Nicholson.
A separate and more contested claim concerns his ancestry. Several popular biographies describe Hujwiri as a sayyid descended from Ali through eight generations, some naming his father Uthman as a direct descendant of Hasan ibn Ali. Böwering’s Iranica entry, which relies more heavily on the primary text, includes no such genealogy, and Hujwiri does not claim it in his surviving writing. Later retellings disagree on the exact number of generations and the line of descent, indicating a tradition still being elaborated rather than a fixed early memory.
The widely repeated story that Mu'in al-Din Chishti visited Hujwiri’s grave and composed the couplet by which he is still praised as Ganj Bakhsh depends entirely on later transmission. It may be true, but it cannot be checked against anything Hujwiri wrote and should be presented as a tradition held by his devotees rather than a documented historical meeting. The couplet itself is traditionally given as:
Ganj Bakhsh-e-Faiz-e-Alam Mazhar-e-Nur-e-Khuda, Naqisan-ra Pir-i Kamil, Kamilan-ra Rahnuma.
Formation and travels
Hujwiri was raised near Ghazna, then a major Ghaznavid capital. His teacher Abu’l-Fadl Muhammad al-Khuttali linked him, at one remove, to the Baghdad school of Sufism descending through al-Husri, Abu Bakr al-Shibli (d. 946), and Junayd (d. 910), placing his training within the more law-abiding wing of early Sufism. He also studied Hanafi jurisprudence. His own account in describes extended stays in Baghdad, Nishapur and Damascus, together with visits to the tombs of Bayazid Bastami and Abu Sa'id Abu'l-Khayr. He mentions a period of debt in Iraq and a brief, unhappy marriage.
His arrival in Lahore is less settled than the standard missionary narrative suggests. Nicholson read a passage in as describing Hujwiri being brought to Lahore against his will, effectively as a prisoner; later sources such as the prefer a voluntary journey undertaken to spread the faith. Böwering places the move during the reign of the Ghaznavid sultan Mas'ud and allows that Hujwiri “may even have been imprisoned there in his later years.” The popular account of a deliberate mission to a mostly Hindu population is not fully supported by Hujwiri’s own writing.
A traditional spiritual lineage transmitted by later devotees runs:
Imam Ali Hasan al-Basri Habib al-Ajami Dawud al-Ta'i Maruf al-Karkhi Sari al-Saqati Junayd al-Baghdadi Abu Bakr Shibli Ali Husri Abul Fazal Khutli Ali al-Hujwiri
Kashf al-Mahjub
was composed at least partly in Lahore; Hujwiri complains of being hampered by the loss of the library he had left behind in Ghazna. It combines doctrinal argument, biographies of earlier Sufis, and Hujwiri’s central claim that authentic mysticism cannot exist outside the boundaries of religious law. He draws heavily on al-Sarraj’s and on material from al-Sulami and Qushayri, so the book is better read as a doctrinal and literary statement than as an independent historical record of everyone it describes.
A distinctive feature is Hujwiri’s treatment of the first four caliphs and several of the Imams recognised in Shi’a Islam as a single lineage of Sufi virtue. He praises Abu Bakr as the model of renouncing wealth and “the leader (imām) of all the folk of this Path”; Umar as the model of combining worldly duty with devotion; Uthman as the model of self-sacrifice; and Ali as uniting outward observance with inward meaning, approvingly citing Junayd’s remark that “Ali is our Shaykh as regards the principles.” The same treatment extends to Hasan ibn Ali, Husayn ibn Ali (whom he calls “the martyr of Karbala”), Zayn al-Abidin, Muhammad al-Baqir, and Ja'far al-Sadiq, and, outside the Prophet’s household, to Abu Hanifa (“Imām of Imāms”) and Ahmad ibn Hanbal, whom he defends against contemporary accusations of anthropomorphism.
Hujwiri’s own introduction already describes genuine Sufism as having become largely obsolete in his time, corrupted by people claiming the name without the discipline behind it. He insists that true mystical activity must remain within the boundaries of the Sharia; those who held that “when the Truth is revealed the Law is abolished” he condemned as heretics.
On sama (listening to music or poetry in a devotional context) he is stricter than is often assumed. He dismisses ordinary dancing as having no basis in law or in the Sufi path, but treats the involuntary movement of a Sufi overcome by rapture as categorically different—“a state that cannot be explained in words.” He permits listening to poetry generally, since Muhammad and his companions did so, but draws a firm line at love poetry dwelling on physical description, which he regards as leading toward the unlawful.
He also affirms the orthodox belief in the existence of saints, stating that the principle and foundation of Sufism rests on sainthood and that God has saints whom He has specially distinguished by His friendship and who continue until the Day of Resurrection.
Lost works
Hujwiri names several other compositions of his own within , none of which survive: a of his poetry; , apparently combining an account of Sufi-adjacent companions of Muhammad with a biography of the executed mystic Mansur al-Hallaj; a treatise on the patched woolen garment worn by Sufis, ; and , on the doctrine of . A further text sometimes attributed to him, , circulates today only in a modern translation with commentary by a living Sufi teacher rather than through critical manuscript scholarship, and should be treated as considerably less securely attributed than the works Hujwiri names himself.
Shrine, and the doctrinal dispute
Data Darbar’s prominence has made it a repeated target of sectarian militant violence, and the shrine has also long sat at the centre of a genuine, ongoing doctrinal disagreement among Sunni Muslims in South Asia over whether venerating a saint’s grave is appropriate Islamic practice.
Violence
On 1 July 2010 two suicide bombers detonated inside the shrine complex during evening prayers, killing at least 45–50 people and wounding roughly 200 more—at the time the deadliest attack on a Sufi site in Pakistan since 2001. A spokesman for the Tehrik-i-Taliban Pakistan publicly denied responsibility, a denial security analysts treated with scepticism given the group’s history of targeting shrines it regards as sites of idolatry. A second bombing on 8 May 2019 killed roughly a dozen people outside the same complex.
Doctrinal dispute
The dispute predates the bombings by roughly a century and is best understood as one strand of the wider Barelvi–Deobandi divide within South Asian Sunni Islam. The Barelvi movement, associated with Ahmad Raza Khan (1856–1921), defends practices such as visiting graves, seeking intercession through saints, and marking a saint’s death anniversary as legitimate and longstanding expressions of devotion within Sunni tradition. The Deobandi movement, and the more Salafi-influenced Ahl-e Hadith, argue that practices such as prostration at a grave, invoking a saint for help, or treating a tomb as inherently blessed cross into shirk or, more mildly, bid'ah, a critique with roots in earlier reformist writing such as Shah Isma’il Shahid’s Taqwiyat al-Iman. Both positions are actively defended today; neither is treated here as the correct reading of Islam. What can be said with more confidence is that shrines associated with this dispute, Data Darbar prominent among them, have specifically been targeted by militants who frame their attacks in these doctrinal terms.
Legacy
Anthropologist Pnina Werbner describes Hujwiri as still functioning as a “household name” in everyday South Asian Islam; other scholars have called him among the most consequential figures in the historical spread of Islam across the subcontinent. That reputation belongs to Hujwiri the venerated saint, a figure assembled largely after his death, and is worth distinguishing from Hujwiri the eleventh-century author whose own writing can still be read directly.
Don’t just read it —
keep it.
Full-length biographies made to live with: read them, listen on the way to work, watch them tonight.
- E-book
- Audio
- Video
Instant download · yours to keep · every purchase keeps this site free
Important facts
Contemporaries
People whose lives overlapped Ali Hujwiri's
Frequently asked questions
Who was Ali Hujwiri?
Sufi mystic
When was Ali Hujwiri born?
Ali Hujwiri was born on 14 August 1009 in Ghazni.
When did Ali Hujwiri die?
Ali Hujwiri died on 25 September 1072 in Lahore.
What was Ali Hujwiri's occupation?
Ali Hujwiri was a theologian, writer and mystic.
What nationality was Ali Hujwiri?
Ali Hujwiri's recorded nationality: Ghaznavid Empire.
Sources & further reading
Cite this page
APA: Biography.guide. (2026). Ali Hujwiri. https://biography.guide/ali-hujwiri/
MLA: "Ali Hujwiri." Biography.guide, https://biography.guide/ali-hujwiri/.
Chicago: "Ali Hujwiri." Biography.guide. https://biography.guide/ali-hujwiri/.
Data last updated: 2026-09-20 · Spot an error? Report a correction.
Page generated 2026-09-27 04:58 UTC