One
of his important works which assumed historically significant is that. Data
Gunj Bakhsh initiated the construction of a mosque in Lahore which is said to
be the first mosque on the land.

He
paid the entire expenses of the construction from his pocket and made the
mosque Center for the teaching of the Holy Quran in the Arabic language.

Syed
Ali Hujwairi Data Gunj Bakhsh
(May Allah has mercy on him)
  
Birth:400 A.H.     (1009 A.D.)          Death: 465 A.H.   (1072 A.D.)

Popularly
known as Data Gunj Bakhsh, his name was Abu al-Hassan Ali, and his lineage
connects him to Hazrat Imam Hasan. (May Allah be pleased with him).

Being
born in the village Hujwir, near Gazni suffix of Hujwiri is also added to his
name. the depth of his religious knowledge and extraordinary academic genius is
reflected in one of his great works, Kashful-Mahjub (his Book).

He
traveled extensively through Azerbijan, Baghdad, Damascus, Tabaristan, and
Turkistan follow the path of devotion and received a spiritual blessing from
great scholars and mystics.

He
came to stay at Lahore during the days of Sultan Mahmood Ghazni and devoted himself
to the writing of scholarly works and propagation of Islam.

Thousands
of people received guidance from him and embraced Islam including a ruler of
Lahore (Pakistan). 

He
has a very high place among the mystics and scholars of the sub-continent and
sages like Khwaja Moinuddin of Ajmer (India) and Khwaja Fariduddin Ganj Shakar,
who underwent seclusion prayers at his shrine and spiritual elevation.

It
is said that, after receiving blessings, Khwaja Ajmeri before leaving his tomb
recited a Persian couplet which is now engraved on his shrine.

گنج بخش فیض عالم مظہر نور خدا          نا قصاں را پیر کامل کا ملاں راہنما

(Persian couplet): Gunj Bakhsh the spiritual leader is a blessing
for the whole world and more manifest of the Divine light; He is the perfect
guide for spiritual wayfarers and a leader among sages.

His
shrine is located in Lahore (Pakistan).



Data-Ganj-Bakhsh

Data Gunj Bakhsh Mosque

حضرت داتا گنج بخش رحمتہ اللہ علیہ (ولاادت: ۴۰۰ ھ مطابق ١٠٠٩ ء وصال: ٤٦٥ ھ مطابق ١٠٧٢ ء 

 لاہور میں آپ کا ایک اور کارنامہ تاریخی حیثیت رکھتا ہے، یہاں آپ نے ایک مسجد تعمیر کرائی، جو اس سرزمین میں سب سے پہلی مسجد شمار کی جاتی ہے. اس مسجد کی تعمیر پرجو کچھ خرچ ہوا، وہ آپ اپنی جییب سے ادا کیا، یہاں آپ لوگوں کو قرآن پاک کی تعلیم کے ساتھ عربی کا درس بھی دیتے تھے۔ 

 نام ابوالحسن علی ہے، سلسلہ نسب حضرت امام حسن رضی الله عنہ سے ملتا ہے. غزنی کے قریب ایک گاؤں میں پیدا ہوئے. ہجویر جلاب غزنی کے دو علاقے ہیں. اسی نسبت سے ہجویری کہلاہے. ابتدائی زندگی تعلیم کے متعلق زیادہ معلومات میسر نہیں

 لیکن ان کی تصنیف کشف المحجوب سے ان کی غیر معمولی علمی اور دینی استعداد کا پتہ چلتا ہے. طریقت کی منزلیں طے کرنے کے لیے آذربائیجان، خوزستان، بغداد، دمشق، طبرستان، ترکستان اور دوسرے مسلمان ممالک کا سفر کیا اور اور جید اہل علم اور اہل نظر سے فیض حاصل کیا. ان میں ابو القاسم قشیری، ابو سعید ابو الخیزابو العباس اشقانی اور ابو القاسم گرگانی بطور قابل ذکر ہیں۔

 اس کے بعد لاہورآکر سکونت اختیار کی. یہ سلطان محمود غزنوی کا زمانہ تھا. لاہور میں تصنیف و تالیف کے ساتھ اشاعت اسلام کے کام میں مشغول ہوئے. سینکڑوں لوگ حلقہ بگوش اسلام کیے. 

ان میں لاہور کا ایک راجہ بھی شامل تھا. تصوف اور علوم دینیہ میں آپ کا مرتبہ بہت بلند ہے. خواجہ معین الدین چشتی اور حضرت بابا فرید الدین گنج شکر جیسے ولیوں نے آپ کے مزار پر چلہ کشی کی اور سلوک کی منزلیں طے کیں

 کہا جاتا ہے کہ خواجہ معین الدین اجمیری اعتکاف ختم کرکے جب رخصت ہونے لگے تو انہوں نے یہ شعر پڑھا، جو اب لوح مزار پر کندہ ہے۔

 گنج بخش فیض عالم مظہر نور خدا                    نا قصاں را پیر کامل کا ملاں راہنما  

داتا گنج بخش کا مزار لاہور میں بھاٹی دروازے کے باہر مغرب کی جانب واقع ہے. ہر سال ١٩ اور ٢٠ صفر کو آپ کا عرس منعقد ہوتا ہے