Hazrat Amir Khusro inherited from his father not only an honourable place in the society of the day and a high status at the royal court but also the tradition of respect for Sufis and men of piety
When he was eight years old, his mother took him to Hazrat Nizamuddin Auliya. As his mother was entering the door of the great Saint’s Khanqah, the young Hazrat Khusro audaciously said that it was up to him and not his father to choose his Pir. His mother left him outside the door and went in alone to talk to the saint. In the meantime, Hazrat Amir Khusro composed the a quatrain in Persian in order to test the spiritual capabilities of Hazrat Nizamuddin Auliya. Hazrat Amir Khusro affirmed to himself that he would only become a mureed of Hazrat Nizamuddin if a satisfactory answer was provided to the following quatrain:
|“||Toa aan shahey ke bur aiwaan-e-qasrat
Kabutar gar nashinad baaz gardad.
Gharib-e-mustamandey bur dar amad,
You are that great a king that, if on the roof of your grand palace a pigeon were to sit, it becomes a skylark.
A poor and humble soul has come to your door, should he enter or should he go away?
Hazrat Nizamuddin Auliya immediately replied and sent the following reply to Hazrat Amir Khusro in the same form as the initial quatrain:
|“||Beyayad androon mard-e-haqiqat
Ke baa maa yak nafas hamraz gardad.
Agar ablay buwad aan mard-e-naadaan,
Do come in, oh truthful soul, so that we may become close and become trusted friends.
But if you are ignorant and have no wisdom, then you better go back the way you came.
When Hazrat Khusro heard the quatrain, which to him was a perfect reply, he entered the room and became a mureed of Hazrat Nizamuddin Auliya — faithfully serving his master throughout his life.
It is said that the noor he saw on his masters face inspired him to compose Aaj Rang Hai Ri Maa Rang hai ri, mere Khwaja ke ghar rang hai ri ..