It is said that when Iltumish inspected the site the day after his dream, he reported to have found a hoof print of Prophet Muhammad's horse. He then erected a pavilion to mark the sacred location and excavated a large tank around the pavilion to harvest rain water.


Since drinking water supply was acute in the newly founded capital of Iltumish (the first medieval city of Qila Rai Pithora ) a tank was dug at the location indicated in the dream, which resulted in water jetting out from a spring source.
It was, thereafter, named as Hauz-i-Shamsi, and Khawaja, the saint who divined it, came to be known as Hazrat Qutbuddin Bakhtiar Kaki or simply 'Kaki'. The name Kaki was attributed to him by virtue of this keramat (miracle).


Also at the edge of Hauz is the tomb of 17th century Persian writer in the Mughal court,Abdul-Haqq Dehlavi.