These things happened as examples for us, so that we will not crave evil things as they did.
1 Corinthians 10:6 NET
Israel’s history is the narrative of how not to serve God.
All you need is to see the volume that the Prophets make up in the Bible in order to have an idea of the constant departure of God’s people under Moses’ law. The prophets were sent by God to call the nation back to the old paths.
But did they listen? Not at all!
They were stubborn in their own will, insistent in sin, constantly influenced by surrounding nations, ignorant of God’s word — everything they did wrong turns into a lesson for us. If we do the opposite of Israel, we’ll walk nicely in God’s will.
In the end, God uses Israel’s sin to produce good in his church. He can make something positive of Israel’s mess.
The great question is, will we learn the lesson?