Ahmad Shah I, in honour of four Ahmads, himself, his religious teacher Shaikh Ahmad Khattu, and two others, Kazi Ahmad and Malik Ahmad, named it Ahmedabad. The story is that the king, by the aid of the saint Shaikh Ahmad Khattu, called up the prophet Elijah or Khidr, and from him got leave to build a city if he could find four Ahmads who had never missed the afternoon prayer. A search over Gujarat yielded two, the saint was the third, and the king the fourth. The four Ahmads are said to have been helped by twelve Babas; these were Baba Khoju, Baba Laru, and Baba Karamal, buried at Dholka ; Baba Ali Sher and Baba Mahmud buried at Sarkhej ; a second Baba Ali Sher who used to sit stark naked; Baba Tavakkul buried in the Nasirabad suburb, Baba Lului buried in Manjhuri, Baba Ahmad Nagori buried near the Nalband mosque, Baba Ladha buried near the Halim ni Khidki, Baba Dhokal buried between the Shahpur and Delhi gates, Baba Sayyid buried in Viramgam. There is a thirteenth Baba Kamil Kirmini about whom authorities are not agreed.