Many are confused by the fourth of the ten commandments, "Remember the Sabbath Day to keep it holy." Ex 20:8. By going to church on Sunday, some people think they are obeying this command. But that is not the case.
The ten commandments are a part of the Old Testament given to the Jews, prior to Christ death on the cross. Lk 16:16. His death terminated the old testament and established the new testament which is for today. Matt 26:28. Heb 9:14-26. Heb 10:9-10. Col 2:10-17. 2 Cor 3:3-14 The Sabbath isn't part of the law of Christ and one can't keep what isn't the law of God. Rom 4:15. The Sabbath was the 7th day of the week. (Saturday) And on that day, travel and cooking restrictions were in place, and anyone caught working on the Sabbath, was put to death. Ex 20:11. Ex 31:12-18. Ex 16:22-30.