1 Chronicles 5:18-22

18 The sons of Reuben, the Gadites, and half the tribe of Manasseh had forty-four thousand seven hundred and sixty valiant men, men able to bear shield and sword, to shoot with the bow, and skillful in war, who went to war. 19 They made war with the Hagrites, Jetur, Naphish, and Nodab. 20 And they were helped against them, and the Hagrites were delivered into their hand, and all who were with them, for they cried out to God in the battle. He heeded their prayer, because they put their trust in Him. 21 Then they took away their livestock—fifty thousand of their camels, two hundred and fifty thousand of their sheep, and two thousand of their donkeys—also one hundred thousand of their men; 22 for many fell dead, because the war was God’s. And they dwelt in their place until the captivity.

They cried out to God during the battle.
They cried out to God for help in the battle.

He answered their prayers, because they trusted in Him.
He granted their entreaty because they relied on and trusted in Him.

Isaiah 45:23

I have sworn by Myself;
The word has gone out of My mouth in righteousness,
And shall not return,
That to Me every knee shall bow,
Every tongue shall take an oath.

By Myself I have sworn, My mouth has uttered in all integrity a word that will not be revoked:
Before Me every knee will bow.
By me every tongue will swear.

I have sworn an oath by Myself, the word is gone out of My mouth in righteousness and shall not return, that to Me every knee shall bow, every tongue shall swear allegiance.