Habib was a son of Mohammed Naseem, a barrister in Lucknow. His wife Sohaila Tyabji was the daughter of Abbas Tyabji, a noted disciple of Mahatma Gandhi. Their sons are Kamal Habib and Irfan Habib, who is a Professor Emeritus of history at Aligarh Muslim University. Habib studied at the M.A.O. School and College (now Aligarh Muslim University. He topped the B.A. examination of the Allahabad University in 1916. The Muhammadan Anglo-Oriental College was then affiliated to Allahabad University. He then proceeded to New College, Oxford for higher studies. He became president of the Oxford Majlis for one term. It was in Oxford that he received his baptism in nationalism. The ideas of his liberal-minded tutor Ernest Barker, a meeting with Sarojini Naidu and the patronage of Maulana Mohammad Ali, who visited London during his stay in England, played a role in shaping his ideas. At the call of Mohammad Ali, he returned to India to teach at Jamia Millia Islamia but apparently never became a regular member of its staff. When the non-co-operation movement was called off in 1922, he accepted an appointment as a Reader, and almost immediately afterwards as Professor, at the newly chartered Aligarh Muslim University.
Career
In 1926, he won the election of the U.P. Legislative Council as a member of the. He admired Jawaharlal Nehru and donated a considerable part of his income to the Congress Party. At Aligarh, Habib made his mark in many ways. As an academician, his great emphasis was on writing history based on original sources, and he encouraged the study of aspects of history other than dynastic or political rule. He himself wrote on social and cultural history, and painstakingly unravelled the history of Muslim mystics for some of whom he came to cherish an almost personal affection. In the forties, his interest in Marxism heightened and in 1952 he presented, in a remarkable piece, his introduction to a reprint of volume II of Elliot and Dowson'sThe History of India, as Told by Its Own Historians, which was an interpretation of early medieval India deeply influenced by Marxist ideas. He visited Paris to represent his country at the UN General Assembly, followed by a trip to Peking in 1952 on the first goodwill mission from India to the People's Republic of China. Both the visits strengthened him in his belief in the need for India to help countries resisting imperialism. He kept nursing the sapling of liberalism in the portals of his university.