It says plainly in the previous verse that God commanded Moses to write the previously spoken words on which the covenant was established. Moses wrote them, not God
And the LORD said to Moses, Write to yourself these words, for upon these words I have established to you a covenant, and to...