Bari Imam (1617-1705), whose real name was Shah Abdul Latif Kazmi, was born in 1026 Hijra (1617 AD) in Chakwal.
From Nurpur Shahan, Bari Imam went to Ghorghushti in Campbellpur (now known as Attock) where he stayed for two years to learning fiqh, hadith, logic, and other disciplines related to Islam, because at that time Ghorghushti was a great seat of learning.