1Ch 1 Chronicles, chapter First Book of Chronicles, chapter 5
They received help in fighting these enemies because they called out to God during the battles. In this way they were able to defeat the Hagrites and all who were with them. God answered their prayers because they trusted in him. Exo 17:11; Psa 145:19