This word refers to the warriors who command in the battle,
hid in caves - AT: "hid in a large hole in the side of a hill" or "hid in a hole dug in the ground"
The pronoun "him" refers to God.