Moses certainly had a role in delivering the law to the people of Israel and teaching them. However, in a broader sense, God Himself was the author of the commands and was Israel’s divine Teacher.
This concept stood in direct contrast to the thinking of the ancient world, where documents indicate that laws were given to people by their king, not their gods. But here, the God of Israel “provided his laws directly to his covenant people and . . . he actually wrote the basic ones (the Ten Words/Commandments) personally on stone as a sign that all his laws directly from him and are not the product of human invention. Israel’s teacher was thus God himself, who gave them his covenant ‘for their instruction (Stuart quoted in Bible, Expositor and Illuminator Union Gospel Press, Fall Quarter 2020).