He studied in a mosque and then in a local school to 7th grade. He then did a lot of things to further educate himself. The great Persian poet, Maulana Ghulam Qadir Bilgrami, gave him advice on writing poetry. Hafeez worked hard to earn a reputation as a poet. One of Hafeez's most famous poems is "Shahnam-e-Islam", which tells the history of Islam in verse. His poems, written in a blend of Hindi and Urdu, are about romance, religion, patriotism and life. It is known for its gentle rhythm.