The Lord told Israel to rest on the Sabbath and He meant it,
“You shall keep the Sabbath, therefore, for it is holy to you. Everyone who profanes it shall surely be put to death; for whoever does any work on it, that person shall be cut off from among his people. Work shall be done for six days, but the seventh is the Sabbath of rest, holy to the LORD. Whoever does any work on the Sabbath day, he shall surely be put to death” (Exodus 31:14-15).
The Lord wanted them to take time off from work for many reasons, including refreshing their bodies, freeing their minds to dwell on spiritual things, and worship.
Therefore, He said that anyone who did not observe the Sabbath in Israel He would be cut off from the nation. While the New Testament does not command us to observe the Sabbath, yet, we know the idea is still true that we need rest, in particular that we might focus on the Spirit.
However, we continue to do good works, knowing that a final Sabbath rest awaits us (Hebrews 4).