Thanks for the details. Not everything that Israel did was blessed even if it was forgiven.
The story of Israel is mirror image of how God blesses and man refuses to accept His blessings. God creates laws, protects and guides. But we refuse to be obedient, wander away from the protection to seek refuse in worthless idols, and want to assert our will over His. It shows God constant grace, mercy and love in His calling, and it shows man’s utter contempt for the things of God. Eventually Israel was cast out of the land, though God in His mercy brought back a remnant-although they didn’t deserve it.
Though our Father has given to us a new heart to be obedient to His commands, the story of the nation of Israel is a reflection and warning of the evilness of our hearts to stray from God. We are constantly dependent on Him alone.