Through his creative works, he exerted significant influence on the development and refinement of Uzbek literature from the late 17th to the early 18th century.
With deep respect for Bahauddin Nakshband, the founder of the Nakshbandi order, Mashrab visited the house where the saint had lived.
In 1711 AD (1123 Hijri), exposing the duplicitous nature of the clergy, Mashrab expressed his disapproval of many religious dogmas, openly doubting some of them.
In many of his verses, Mashrab wrote quite contemptuously about paradise, hell, the afterlife, and Mecca, and expressed his willingness to exchange them "for a bottle of wine" or sell them "for a coin".
In 1711 AD (1123 Hijri), Mashrab was hanged in Balkh by the order of Mahmud Bey Katagan, the ruler of Kunduz, of the Ashtarkhanid dynasty.
Mashrab's book " Mabdai nur,"( Source of Light) consisting of interpretations of Jalaluddin Rumi's poems and moralistic stories, is popular.
Mashrab's ghazals, muhammas, and quatrains, which constitute his rich creative legacy, have beautifully adorned the treasury of Uzbek literature.
Some of his poems, like "Miraj", "piru rahbar", "Koshki", and "Oʻzum" were passed down orally throughout Central Asia and Eastern Turkestan.