In the Bible, Israelites living in exile was often a result of their disobedience and their lack of trust in Yahweh. Instead of repenting of their sins, they grumbled against God without understanding His purpose for their lives even during their state of exile. This passage reminds us how we can be like Israelites, but also shows us the remedy to live a purposeful life.
Sometimes when we complain and grumble over a situation or a circumstance in our life, we indirectly grumble over God Himself. When we grumble and complain about people whom God has placed under our care or within our reach, we are frustrated with God. But having such an attitude is basically a sin we commit against God. In this passage, we learn about how we can overcome this sin of being frustrated with God our lives.