The son of the distinguished Ottoman statesman Mehmed Namık Pasha, who was the Governor of Baghdad where Hasan Riza was born. He was of Turkish origin, as Mehmed Namık's grandfather migrated from Konya to Constantinople. He entered the Ottoman Military Academy in 1892 and graduated on March 13, 1895.