Little is known about him, except that he lived in the reign of the Moghul Emperor Aurangzeb, and belonged to the Bangakh
tribe of Afghans, who hold the valley of that name, and of which Kohat
is the chief town. The Bangash tribe in bygone days, made a great figure in India; and from a peasant of it, the Nawabs of Farrukhabad, in that country, traced their descent.
Khwajah Mohammad lived the life of a Darwesh, in poverty and religious abstraction, and followed the tenets of the Chasti sect. He was a disciple of Abdul Rahim, who was a disciple of Mian Panju, a celebrated sufi teacher, who came origin ally from Hindustan, and dwelt for many years in Afghanistan. He is said to have traced his descent from the Arab devotee, Mohiuuddin, the founder of the Chashti sect.
Khwajah Mohammad appears to have been a man of some learning; and passed most of his time with his teacher or spiritual guide, already mentioned. It is not known whether he left any descendants; for although I dispatched a person, specially, into the Bangash country to make inquiry, I cannot now discover, with any certainty, either his place of birth, residence, or the branch of the tribe to which he belonged. He is known, however, to have performed the pilgrimage to Makka and Madinah; and that, after his return thence, he gave up writing poetry. His Diwan, or Collection of Odes, from which the following poems have been selected, is a very rare book; in fact, scarcely procurable; for, as far as I can discover, the copy to which I had access is the only one known.
His writings are deeply tinged with the mysticism of the sufis; but occasionally he devotes a poem to the remembrance of lost friends, and laments his bereavement from them.
The place and time of his decease are ..→