(Read Exodus 20:1-2)
God speaks many ways to the children of men; by conscience, by providences, by his voice, to all which we ought carefully to attend; but he never spake at any time so as he spake the TEN COMMANDMENTS. This law God had given to man before; it was written in his heart; but sin so defaced it, that it was necessary to revive the knowledge of it. The law is spiritual, and takes knowledge of the secret thoughts, desires, and dispositions of the heart. Its grand demand is love, without which outward obedience is mere hypocrisy. It requires perfect, unfailing, constant obedience; no law in the world admits disobedience to itself. Whosoever shall keep the whole law, and yet offend in one point, he is guilty of all, James 2:10. Whether in the heart or the conduct, in thought, word, or deed, to omit or to vary any thing, is sin, and the wages of sin is death.
For a more detailed summary select the link below.
God spoke all these words, saying, 2 “I am Yahweh your God, who brought you out of the land of Egypt, out of the house of bondage.