In 1 Chronicles 5:
The families of Reuben, Gad, and the half-tribe of Manasseh . . . fought against the Hagrites, Jetur, Naphish, and Nodab. God helped them as they fought. God handed the Hagrites and all their allies over to them, because they cried out to him during the battle. God answered their prayers because they trusted him.
The families fought --> God helped
The families cried out to God in battle --> God answered their prayers
Seems like a formula to me.
AND THEN, IN THE VERY NEXT VERSES:
As I prepare for this summer's ladies' Bible study, one of the things Andy Stanley encourages us to begin doing is starting the first few moments of every day in prayer. And specifically, to pray the following prayer by Moses, "Lord, teach us to number our days, that we may gain a heart of wisdom." Psalm 90:12.
"Lord, teach me to number my day today, that I may gain a heart of wisdom."