Exodus - Chapter 32

While Moses was on the mountain with God the people built themselves an idol.  This incident is described in Psalm 106, where it says:

The people made a calf at Mount Sinai; they bowed before an image made of gold. They traded their glorious God for a statue of a grass-eating bull. They forgot God, their savior, who had done such great things in Egypt— such wonderful things in the land of Ham, such awesome deeds at the Red Sea. So he declared he would destroy them. But Moses, his chosen one, stepped between the Lord and the people. He begged him to turn from his anger and not destroy them.

The people are destined to die - but God is looking for a chosen one to step in the gap and intercede for them.  Moses does this in here - a demonstration of what Jesus is doing for us.  It says in Romans - Chapter 8 - that Jesus is at the right hand of God and is also interceding for us.