וּשְׁמַרְתֶּם֙ אֶת־הַשַּׁבָּ֔ת כִּ֛י קֹ֥דֶשׁ הִ֖וא לָכֶ֑ם מְחַֽלְלֶ֙יהָ֙ מ֣וֹת יוּמָ֔ת כִּ֗י כָּל־הָעֹשֶׂ֥ה בָהּ֙ מְלָאכָ֔ה וְנִכְרְתָ֛ה הַנֶּ֥פֶשׁ הַהִ֖וא מִקֶּ֥רֶב עַמֶּֽיהָ׃
Peliharalah hari Sabat, sebab hari itu kudus bagimu. Siapa pun yang melanggar kekudusannya pasti dihukum mati; sebab siapa pun yang melakukan pekerjaan pada hari itu, orang itu akan dilenyapkan dari antara bangsanya.
Mishneh Torah, Sabbath
[In the case of] a Jew that did forbidden work on Shabbat: If he transgressed volitionally, it is forbidden for him to ever benefit from that forbidden work. But it is permissible for other Jews to benefit from it at the conclusion of Shabbat; as it is stated (Exod. 31:14), “You shall keep the Shabbat, for it is holy” – it is holy, but its acts are not holy. How is this? [If] a Jew cooked on Shabbat volitionally, it can be eaten by others at the conclusion of Shabbat – but he may never eat it. But if he cooked inadvertently, it can be eaten immediately at the conclusion of Shabbat, whether by him or by others. And likewise anything that is similar to this.