Exodus 35:2 Midrash

שֵׁ֣שֶׁת יָמִים֮ תֵּעָשֶׂ֣ה מְלָאכָה֒ וּבַיּ֣וֹם הַשְּׁבִיעִ֗י יִהְיֶ֨ה לָכֶ֥ם קֹ֛דֶשׁ שַׁבַּ֥ת שַׁבָּת֖וֹן לַיהוָ֑ה כָּל־הָעֹשֶׂ֥ה ב֛וֹ מְלָאכָ֖ה יוּמָֽת׃

Six days shall work be done, but on the seventh day there shall be to you a holy day, a sabbath of solemn rest to the LORD; whosoever doeth any work therein shall be put to death.

Read midrashic interpretation of Exodus 35:2: and classical rabbinic exegesis.