They put their trust in God and prayed to him for help, and God answered their prayers and made them victorious over the Hagrites and their allies.