Legend of King Akbar

According to one legend, King Akbar came to the present-day site of Hafizabad on a hunting trip. The King lost his company as he was busy hunting. This territory was a jungle-like area and there was nothing to eat or drink. The King felt thirsty and wanted to drink some water. Suddenly he was astonished to see smoke. He followed the smoke and found a cottage, and in the cottage there was a man named Sarmast. The King told him about his thirst and asked for some water. Sarmast had no water, but he called up a grazing deer and milked it to serve the king with milk. The King drank the milk and told the Sarmast that he was a king and said, "Please ask me for the thing you want. I will give you whatever you want." Faqir Sarmast asked him to build a town for his pupils. The King promised and ordered the current Hakim, named Hafiz Meerak, to construct a city there.
Hafiz Meerak did as the King ordered. The town, Hafizabad, took its name from his name. One source says that King Akbar wanted to name the town Akbarabad, but the name Hafizabad became popular until the King knew about its creation. King Akbar also remained the name same as Hafizabad. Historians think that this city came into being between 1556 - 1570. The main population was located where an old church is now located.