 He was a candidate in the 1967 Indian vice-presidential election, which he lost to V. V. Giri.Habib, contesting as an independent candidate, received 28.55% of the votes.Habib was a son of Mohammed Naseem, a barrister in Lucknow.