For whatever was written in former days was written for our instruction, that through endurance and through the encouragement of the Scriptures we might have hope.
Romans 15:4
We tend to think of much of the Old Testament as being a history of past events. Which it is, but the Old Testament also brings us encouragement as we read over and over again how God met the needs of the Israelites.
God who helped David defeat Goliath (1 Samuel 17) and who answered with the fire from heaven when Elijah called on Him (1 Kings 18), is the God we serve today.
This hope we have: When we call on God, He will answer.