So God created man in his own image, in the image of God he created him; male and female he created them. – Genesis 1:27
The Holy Spirit wrote that through the hands of Moses. God created man in his own image, in the image of God he created him… The Bible is God’s revelation of himself, and he has revealed himself as the male gender. This is not a human construct; this is the revelation constructed in the mind of God. Maleness is how God self-identifies. Of course, God the Father (another self-identification of God) does not have a body, and is Spirit (John 4:24), but the lack of physical flesh for the First Person of Trinity doesn’t mean God lacks a gender. For in fact, God ascribes to himself gender.
— Pulpit & Pen, Church Pastor Says to Stop Calling God “He,” and Instead Use Gender-Neutral Pronouns, November 13, 2017