Prince Salim, later known as Jahangir, was a child of many prayers. Akbar, who had lost all the children of his early youth, ardently desired an heir who should live to inherit his vast empire. He prayed to God, besought the blessings of saints, and went to the mausoleum of Khwaja Muinuddin Chishti at Ajmer from 1562 to 1569 and waited on other well-known saints of that time.
Mariam-uz-Zamani, gave birth on 30th August, 1569, to a child who was named Nuruddin Salim. The mother of Salim, Mariam-uz-Zamani, was the Jaipur princess and is also known as Harkha Bai and Rukmawati Bai.The emperor Akbar fulfilled his vow of making his journey on foot to Ajmer and paying his homage to the shrine of Khwaja Muinuddin Chishti
Akbar had vowed that if he should be blessed with a son, he would walk to the shrine of the founder of the Chishti order, Shaikh Mu’in ad-Din Chishti, at Ajmer to offer his prayers. He left Agra in January 1570, and swiftly covered the 370 or so kilometers. From that year until 1579 he made annual pilgrimages to the city of Ajmer.