Shahryar started his career as a writer at
Hamari Zubaan, the weekly magazine of the
Anjuman Tarraqqi-e-Urdu in 1961 and worked there until 1966.
Lyricist Shahryar wrote lyrics for select films, only from Aligarh where he was approached by filmmakers. Muzaffar Ali and Shahryar were friends from their student days, and Shahryar had shared some of the ghazals with him. Later when Ali made his directorial debut with
Gaman in 1978, he used two of his ghazals
Seene Mein Jalan Ankhon Mein Toofan Sa Kyun Hai and
Ajeeb Saneha Mujhpar Guzar Gaya Yaaron in the film, and they are still considered classic. All his
ghazals from
Umrao Jaan, 'Dil Cheez Kya Hai Aap Meri Jaan Lijiye', 'Ye Ka Jagah Hai Doston', '
In Aankhon Ki Masti Ke' are among the finest lyrical works in Bollywood. He also wrote for
Yash Chopra's
Faasle (1985), thereafter Chopra offered him three more films to write for him, but he refused as he didn't want to become a "song shop". Though he wrote for Muzaffar Ali's
Anjuman (1986). He also left behind unfinished contributions to Ali's
Zooni and
Daaman. ==Personal life==