The next day Moses told the people, "This is a terrible thing you have done. But I will go back to the LORD to see if I can do something to keep this sin from being held against you."
Moses stayed on the mountain with the LORD for forty days and nights, without eating or drinking. And he wrote down the Ten Commandments, the most important part of God's agreement with his people.