Nāṣir ad-Dīn ʿUbaydullāh ibn Maḥmūd ibn Shihāb ad-Dīn (1404–1490; Arabic: ناصرالدین عبیدالله احرار) more popularly known as Khwaja Ahrar (Persian: خواجه احرار) was a member of the Golden Chain of the Naqshbandi Sufi spiritual order of Central Asia.
[3][4] Khwaja Ahrar was deeply involved in the social, political and economics activities of Transoxania.
He was born into a relatively poor yet highly spiritual family and, at the age of maturity, he was probably the richest person in the kingdom.
[9] His birth took place during the ramadan of 806 Hijri (March, 1404) in village near Tashkent called Baghistan.
He repetitively fell sick during studies, making him quit altogether, but his spiritual states developed until he once saw prophet Jesus in his dreams where he said "I will teach you."
[19] The height of Khwaja Ahrar's career coincided with the cultural efflorescence of Herat[20] during the reign of Sultan Husayn Bayqara.
However, the chief aid of the sultan had no interest, so Khwaja Ahrar told him "I have been commanded by God and His messenger to come here".
At this, the Khwaja wrote the name of the Sultan on the wall, erased it with his saliva, said "God will replace you with a King who is concerned for his people", and left.
Some days later, as history records, Sultan Abu Sa'id Mirza, another Timurid King gathered his forces and attacked Samarqand.
Sultan Abu Saeed later became the grandfather of Zahiruddin Muhammad Babur, the conqueror of India and founder of the Mughal Empire.
This alliance of Abu Sa'id Mirza and Khwaja Ahrar lasted for decades and proved fruitful for the whole kingdom.