Assigning a specific sex to God is incorrect. God is neither male nor female. Using "him" to refer to God is a remnant of the sexism that the institutional Church should abandon.

Gregory of Nazianzus, in his Orations, 37, wrote "Perhaps you could be foolish enough to suppose God male because the word is? [He means that the word 'theos' is masculine in Greek.]  Or the Spirit neuter because he neither begets nor bears? Or even that God cohabited with his own will [feminine in Greek], according to the old myths, to beget the Son -- which posits the androgynous God of Marcion and Valentinus?" Marcion and Valentinus were early Gnostic leaders.