ɐkˈoːɹdɪŋ tə wˈʌn lˈɛdʒənd, ɪt wʌz fˈaʊndᵻd ˌoʊvɚɹ ɐ hˈaɪ mˈaʊnd ɪn sˈɛkənd hˈæf ʌv sˈɪkstiːnθ sˈɛntʃɚɹi baɪ ðə nˈoʊɾᵻd mˈoʊɡəl mˈænsɐbdˌɑːɹ ˈɑːɹbæb mˈʌstɐdʒˌæb kˈɑːn mˈɑːmænd ɪnðə pɹˈɛzəns ʌv tˈuː ɹᵻnˈaʊnd spˈɪɹɪtʃˌuːəl fˈɪɡjɚz—hˈæzɹæt kˈɑːkə sˈæhɪb ɹˈɑːmkɑːɹ ænd ˈækhʌnd dɜːwˈeɪzə bˈɑːbə.
According to one legend, it was founded over a high mound in second half of 16th century by the noted Mughal Mansabdar Arbab Mustajab Khan Momand in the presence of two renowned spiritual figures—Hazrat Kaka Sahib Rahmkar and Akhund Dirwaiza Baba.