The fourth commandment was a sign (like a banner) identifying the practitioners were under the law. That is why it had to go. That is why it went away.
Exo 31:13 Speak thou also unto the children of Israel, saying, Verily my Sabbaths ye shall keep: for it is a sign between me and you throughout your generations; that ye may know that I am the LORD that doth sanctify you. 14 Ye shall keep the Sabbath therefore; for it is holy unto you: every one that defiles it shall surely be put to death: for whosoever does any work therein, that soul shall be cut off from among his people. 15 Six days may work be done; but in the seventh is the Sabbath of rest, holy to the LORD: whosoever does any work in the Sabbath day, he shall surely be put to death. 16 Wherefore the children of Israel shall keep the Sabbath, to observe the Sabbath throughout their generations, for a perpetual covenant. 17 It is a sign between me and the children of Israel for ever: for in six days the LORD made heaven and earth, and on the seventh day he rested, and was refreshed.
TD
The Sabbath was around long before the law of Moses.
The Sabbath is a shadow of the rest to come, when Jesus returns and we reign with Him for a thousand years, on the Seventh Day.
Peter says it this way -
8 But, beloved, do not forget this one thing, that with the Lord
one day is as a thousand years, and a thousand years as one day. 9 The Lord is not slack concerning
His promise, as some count slackness, but is longsuffering toward us, not willing that any should perish but that all should come to repentance. 10 But the day of the Lord will come as a thief in the night, in which the heavens will pass away with a great noise, and the elements will melt with fervent heat; both the earth and the works that are in it will be burned up. 2 Peter 3;8-10
We will truly have rest when the enemy is bound in chains, and the wicked removed from the earth, and we have transformed, immortal bodies, with no sin in it, that strives against the Spirit of God.
That will be true rest.
That is the Sabbath that is to come, of which the weekly Sabbath points to.
Those who are Christ's, do indeed enter that rest to come.
Therefore,
since a promise remains of entering His rest, let us fear lest any of you seem to have come short of it. 2 For indeed the gospel was preached to us as well as to them; but the word which they heard did not profit them, not being mixed with faith in those who heard
it.3 For we who have believed do enter that rest, as He has said:
“So I swore in My wrath,
‘They shall not enter My rest,’”
although the works were finished from the foundation of the world. 4 For He has spoken in a certain place of the seventh
day in this way: “And God rested on the seventh day from all His works”; 5 and again in this
place: “They shall not enter My rest.”
6 Since
therefore it remains that some must enter it, and those to whom it was first preached did not enter because of disobedience, 7 again He designates a certain day, saying in David, “Today,” after such a long time, as it has been said:
“Today, if you will hear His voice,
Do not harden your hearts.”
8 For if Joshua had given them rest, then He would not afterward have spoken of another day. 9 There remains therefore a rest for the people of God. 10 For he who has entered His rest has himself also ceased from his works as God
did from His.
11 Let us therefore be diligent to enter that rest, lest anyone fall according to the same example of disobedience. Hebrews 4:1-11
JLB