The Israelites were attacked and faced a challenge. They learned that the outcome of the battle truly does belong to God and is a testimony of his presence.
The Israelites in the wilderness faced times of disappointment. They struggled with trusting God. God never abandoned them but provided what they needed.