God wrote His commandments directly for the Israelites (Ex. 19-20; 31:18). There are three kinds of laws in the Old Testament:
Only the moral law was written into the human heart, accomplished with God's creation of humankind. When God made the moral law known to Moses, he arranged the Law into ten "words", as translated into Hebrew.