One of the key events in Exodus following the miraculous escape of the Israelites from Egypt was the giving of the Ten Commandments on Mount Sinai while the people were in the wilderness.
God literally wrote the commandments on stone and gave the slabs to Moses to take back to his people (Exodus 20; Deuteronomy 5).
Moses destroyed the first set of commandments when he returned to find the Israelites involved in immoral idol worship upon his return from the top of the mountain (Exodus 32:19). God provided a second set (34:1-4) and promised blessing if the Israelites kept the commandments.
Moses’s return from the mountain foreshadows Jesus’s return. When the Israelites became anxious and worried that Moses’s mountain top meeting with God was taking too long, they doubted and mocked God’s promises, and turned to man-centered ungodliness and idolatry.
When Moses returned, he found them involved immoral worldly occult behavior. He gathered those who were “for the Lord” (Exodus 32:26),” then ordered swift judgment on the rest of the people who were not for the Lord (verses 27-29).
Compare that scenario with 2 Peter 3:3-4, where we read, “Above all, you must understand that in the last days scoffers will come, scoffing and following their own evil desires. They will say, ‘Where is this “coming” he promised? Ever since our ancestors died, everything goes on as it has since the beginning of creation.’”
During the future tribulation period, many people will practice immorality and occult behavior. In Revelation 9, after the first set of judgments from God have already commenced, we read this in verses 20-21:
The rest of mankind who were not killed by these plagues still did not repent of the work of their hands; they did not stop worshiping demons, and idols of gold, silver, bronze, stone and wood—idols that cannot see or hear or walk. Nor did they repent of their murders, their magic arts, their sexual immorality or their thefts.
Many details in the Old Testament serve as prophetic types or foreshadows of the Messiah related to both His first and second comings. The fulfillment of these prophetic types serve as strong proof of the divine origin of the Bible.