He left in 1949 for the United Kingdom, where he graduated with a degree in law from the University of Wales, Aberystwyth.[3] In 1957 when he returned, he joined the legal service. He then served in Kota Baru, Kelantan as a magistrate. Soon after independence that same year, he was transferred to the national capital of Kuala Lumpur, where he served as Deputy Public Prosecutor.