“You shall make no idols for yourselves, nor shall you raise for yourselves a graven image or a pillar; nor shall you place any figured stone in your land to bow down unto it; for I am the Lord your God. You shall keep My Sabbaths and reverence My sanctuary: I am the Lord” (Lev 26:1-2)Why does G-d prohibit idolatry in one sentence and then in the very next sentence reaffirm the command about Sabbath-keeping?
It's almost as if G-d is saying that we must keep Shabbat in order to show that we worship G-d and not idols.
This idea becomes more clear in the Prophets:
"And it shall come to pass, that from one new moon to another, and from one sabbath to another, shall all flesh come to worship before me, saith the Lord," (Isa. 66:23).