The Israelites were a cherished treasure before God. If His chosen people remained loyal to Him, then that would ensure their continual protection and support. He would regularly bless Israel. God unambiguously condemned the worship of heathen deities. He required that His people serve Him in ways that He ordains. God would punish descendants who followed in their parent's idolatrous footsteps.
The love and mercy of God is extended to all who love Him. These things will be manifested for eternity. God is devoted to those who love and serve Him. These people have found favor in His sight. His love for sinners is infinitely wide. If we truly love God, then we will keep His commandments (John 14:15).
The Mosaic Law made known the way in which God's redeemed people were to live before Him. This is evident in the preface to the Ten Commandments: "I am the Lord your God who brought you out of the land of Egypt, therefore..." First, God redeemed Israel. And secondly, He gave instructions as to how His redeemed people would walk before Him. Consequently, the Mosaic Covenant could not have been a system of works righteousness. We recognize the same pattern found in the New Testament: justification followed by sanctification.