They received help against these enemies because they cried out to God in battle, and the Hagrites and all their allies were handed over to them. He was receptive to their prayer because they trusted in him.