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.
Social institutions to safeguard various economic interests included the mahajans, guilds of merchants, and panches, guilds for artisans.