PIR MUHAMMAD KHAN, one of the Barakzai brothers who came into control of Peshawar which became a tributary to Maharaja Ranjit Singh in 1823. Dost Muhammad Khan who had established himself in power at Kabul bitterly felt the loss of Peshawar. Pir Muhammad along with his brother, Sultan Muhammad, reached Lahore in March 1837 where he was well received by the Maharaja. On 7 May 1837, Pir Muhammad and his borther Sultan Muhammad were sent to Peshawar with Prince Kharak Singh. In March 1839. 

Pir Muhammad offered to help Shah Shuja` who was supported by Ranjit Singh against Dost Muhammad Khan. In 1844, a jdgir worth 40,000 rupees in Peshawar was conferred on Pir Muhammad Khan who remained a steadfast ally of the Sikh sovereign.

References :

1. Griffin, Lepel, Ranjit Singh. Oxford, 1905
2. Gupta, H.R., Panjah on the Eve of First Sikh War. Chandigarh, 1956
3. Ali, Shahamat, The Sikhs and Afghans. London, 1947
4. Suri, Sohan Lal, ` Umddt ut-Twarikh. Lahore, 1885-89