Deuteronomy 10:4

10:4 The Lord then wrote on the tablets the same words, the ten commandments, which he had spoken to you at the mountain from the middle of the fire at the time of that assembly, and he gave them to me.

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.