Here is another example of YHWH's laws existing BEFORE they were written on stone.From Adam to Moses there was sin but no law,
Exo 16:23 And he said unto them, This is that which YHWH hath said, To morrow is the rest of the holy sabbath unto YHWH: bake that which ye will bake to day, and seethe that ye will seethe; and that which remaineth over lay up for you to be kept until the morning.
Exo 16:24 And they laid it up till the morning, as Moses bade: and it did not stink, neither was there any worm therein.
Exo 16:25 And Moses said, Eat that to day; for to day is a sabbath unto YHWH: to day ye shall not find it in the field.
Exo 16:26 Six days ye shall gather it; but on the seventh day, which is the sabbath, in it there shall be none.
Exo 16:27 And it came to pass, that there went out some of the people on the seventh day for to gather, and they found none.
Exo 16:28 And YHWH said unto Moses, How long refuse ye to keep my commandments and my laws?
Not only does this passage show commandments and laws existed before they were written on stone, but one of those laws was the Sabbath commandment. Israel was keeping the Sabbath (for the most part) before YHWH wrote it on stone. As usual, there were people who refused to obey the Sabbath command. YHWH knew there would be such people which is why He used the miracle of the manna and the Sabbath to TEST Israel to see if they would obey.Exo 16:24 And they laid it up till the morning, as Moses bade: and it did not stink, neither was there any worm therein.
Exo 16:25 And Moses said, Eat that to day; for to day is a sabbath unto YHWH: to day ye shall not find it in the field.
Exo 16:26 Six days ye shall gather it; but on the seventh day, which is the sabbath, in it there shall be none.
Exo 16:27 And it came to pass, that there went out some of the people on the seventh day for to gather, and they found none.
Exo 16:28 And YHWH said unto Moses, How long refuse ye to keep my commandments and my laws?
Exo 16:4 Then said YHWH unto Moses, Behold, I will rain bread from heaven for you; and the people shall go out and gather a certain rate every day, that I may prove them, whether they will walk in my law, or no.
The Hebrew word for "prove" is "nasah" meaning "to test". YHWH is using the Sabbath to test us today as well.
1 Co 10:11 Now these things happened to them as an example, and they were written for our instruction, upon whom the ends of the ages have come.