Muhammad Hafeez was born on 15 June 1968 at village Bala Noor Shah, District Muzaffarabad, Azad Kashmir to Muhibullah. He was the eldest of four brothers.

After doing his matric, he joined Pakistan Navy in 1984.

He was a kind hearted person, and a little reserved one. He was fully aware of his responsibilities and always worked hard towards them. A very good professional, he was always eager to enhance his professional knowledge. Along with his service requirements, he concentrated on enhancement of his qualifications too. He did his bachelors and then appeared for Masters in International Relations from Karachi University. He successfully earned the Masters Degree, though the result was announced after his martyrdom.
Mohammad Hafeez has an interest in reading and was a good volley ball player.