There is no doubt that God loved the people of Israel with great love, but the Bible also teaches us that this people loved by God, went many times behind idols and hardened their hearts to the voice of God, even seeing all the wonders that God did for them before Egypt. But another thing that we must take very much into account is that God always kept correcting them, exhorting them to walk on the right path, and in the same way God calls us to walk in His will.
Before the people of Israel obtain the promise of the land that flowed milk and honey, God said to His people:
28 And there you will serve gods, the work of men’s hands, wood and stone, which neither see nor hear nor eat nor smell.
29 But from there you will seek the Lord your God, and you will find Him if you seek Him with all your heart and with all your soul.
Something key that we can not forget in the Christian life is that the mercy of God is unlimited for His people. We always have a moment to retreat from our mistakes and God awaits us with open hands so that we can go to His mercies.