There is a clear difference in the history of Israel when they depended on God and when they didn't. They enjoyed a reign of peace when they depended on God, but they were plundered by the gentile nations and suffered greatly when they departed from God. In His love, God wants to give us blessings and peace. This is why God says,
"You shall therefore impress these words of mine on your heart and on your soul; and you shall bind them as a sign on your hand, and they shall be as frontals on your forehead. You shall teach them to your sons, talking of them when you sit in your house and when you walk along the road and when you lie down and when you rise up" (Deuteronomy 11:18~19).