Are you trying to say that the Sabbath is a commandment since the creation? I'm afraid some people disagree with this. Check out this site:
Did Abraham Observe the Sabbath?. It raises interesting points against this view. For example:
1) Did Abraham observe the Sabbath?
2) Did Joseph keep the Sabbath?
3) Did Israel keep the Sabbath in Egypt?
Check out that site.
******
In Genesis, we see that there is a universal acceptance of certain wrongs; that reveal, a knowledge of Law from God that was generally known, but was being ignored, lost and transgressed.
i. We see that to be covetous is wrong because Eve coveted the fruit that was forbidden. Genesis 3:6.
ii. We see that murder was sin in Genesis thus a moral law existed for where there is no law, no sin exists. Genesis 4:6-8.
iii. We see that to honor one’s parents was also a recognized moral behavior. Genesis 9:20-25.
iv. We also see that the concept of lying or bearing false witness was a moral consciousness as well in the book of Genesis. Genesis 12:10-13.
v. So also was adultery a sin revealing that some form of moral law existed; in the substructure. Genesis 12:14-20.
vi. Also hating the opposite of love reveals that the moral principle of love existed in Genesis. Genesis 27:41.
vii. Making graven images and even having other gods before God were all in the awareness of the moral consciousness of man in the period covered by Genesis. Genesis 35:1-4. 9
viii. Even taking God’s name in vain which is hypocrisy and insincerity in serving God; was a moral value existing in the period covered by Genesis. Genesis 38:13-19,24-26.
Thus we see that the essence or morals of the commandments existed as a substrata in the period of Genesis, although there is no written account of the Commandments of God. But it does not mean that they did not exist, nor they should not be kept, the proof that they existed and should have been kept is seen in the moral behavior of the people in the accusing and excusing of their behavior.
This explains how all men will be judged by the Law of God, even those in Genesis. Ecclesiastes 12:13,14; James 2:8-12.
The seventh day Sabbath falls into the same category.
Even though it is not seen as part of a code like the other nine clauses of the Law, the fact that it exist in Genesis as a blessed day that is hallowed (sanctified, dedicated to holy use), and was made for man (humanity) as Jesus said, then it too exists as a substrata moral from the very beginning of the world in Genesis. (Genesis 2:1-3; Mark 2:27).
That all the Commandments of God is one unit can be seen in Scripture. (Deuteronomy 4:13; Deuteronomy 5:22; James 2:8-12).
Until the law came at Mt. Sinai sin was in the world and sin is the transgression of the Law, because if the Law did not exist there would be no sin existent. (Romans 5:13; 1 John. 3:4).
So the law of God did exist in Genesis although there is no account of it being written in a coded form and handed to man in Genesis. It is this law that everyone will be judged by, even those that cover the period of Genesis. Ecclesiastes 12:13,14.
Jesus reaffirmed it on Mt. Sinai ...Remember the Sabbath and KEEP it holy.
and again .... Jesus affirms it by pointing back to creation.
Mark 2
27Then Jesus declared, “The Sabbath was made for man, not man for the Sabbath. 28Therefore, the Son of Man is Lord even of the Sabbath.
The law was passed down orally from Genesis (Adam & Eve) onwards until it was written by the hand of God on tablets of stone ... and is evidenced by the behavior of the people.
Sin is transgression of the law ... did people in Genesis sin? YES ... they most certainly did .... the law has always in place.
ALL have sinned (for all time) and fall short of the glory of God ..... what is sin ... transgression of the law.