Exodus 32:19

32:19 When he approached the camp and saw the calf and the dancing, Moses became extremely angry. He threw the tablets from his hands and broke them to pieces at the bottom of the mountain.

Exodus 34:28

34:28 So he was there with the Lord forty days and forty nights; he did not eat bread, and he did not drink water. He wrote on the tablets the words of the covenant, the ten commandments.