Be careful to follow every command I am giving you today, so that you may live and increase and may enter and possess the land the LORD promised on oath to your ancestors. Remember how the LORD your God led you all the way in the wilderness these forty years, to humble and test you in order to know what was in your heart, whether or not you would keep his commands. He humbled you, causing you to hunger and then feeding you with manna, which neither you nor your ancestors had known, to teach you that man does not live on bread alone but on every word that comes from the mouth of the LORD. Your clothes did not wear out and your feet did not swell during these forty years. Know then in your heart that as a man disciplines his son, so the LORD your God disciplines you.
All of chapter 8 is good to see more of the context (link includes it), but this passage quoted above is easily sufficient to make the point needed. One important aspect of life is that it’s essentially a trial as in a test from God. Who likes tests? Not many, myself included. But good tests in a healthy academic setting can be learning experiences both of what we need to shore up on, and actually providing a stimulus for better understanding.
We off and on run into matters we just as soon would escape. That was so true of Israel in the wilderness. They grumbled and complained about the manna God gave them, missing the food they had in Egypt, even though their lot there had been abject slavery. Instead of going through the trial, trusting in their God who had delivered them, they failed the test, resorting to their own thoughts and devices or way of living.
All Scripture is written for us, for our learning and benefit (Romans 15:4; 2 Timothy 3:16-17). In this passage we learn that we can look at life in significant part as a testing from God, to help us see where we fall short, our dependency on God and God’s word, and what we should do and not do if we’re to trust God.
Psalm 95 and Hebrews 3 warn us against failing to trust in God and his word. When we’re up against it, in an impossible situation, and really in any and every circumstance in life, we’re supposed to trust God and in faith hold on to his promises. The testing shows both the genuineness of our faith (1 Peter 1:6-7), and where we need to grow. Something we may not like, but all for our good. In and through Jesus.