So the soldiers of Israel were defeated, and the soldiers of Judah won the battle because they trusted in Yahweh, the God to whom their ancestors belonged.