Remembering that the standard heat of formation of one mole of the compound from its elements in their natural states, the equation should reflect Be (s), Hydrogen (2 atoms) and oxygen (2 atoms)
The equation then is
Be(s) + H2(g) + O2(g) → Be(OH)2(s) ΔHo = -903 kJ/mol