Then all the children of Israel, and all the people, went up, and came to Bethel, and wept, and sat there before Yahweh, and fasted that day until even; and they offered burnt-offerings and peace-offerings before Yahweh.
With each successive defeat the Israelites became more concerned about getting God’s guidance. They had previously just asked Him to bless their plans with success.