וּשְׁמַרְתֶּם֙ אֶת־הַשַּׁבָּ֔ת כִּ֛י קֹ֥דֶשׁ הִ֖וא לָכֶ֑ם מְחַֽלְלֶ֙יהָ֙ מ֣וֹת יוּמָ֔ת כִּ֗י כָּל־הָעֹשֶׂ֥ה בָהּ֙ מְלָאכָ֔ה וְנִכְרְתָ֛ה הַנֶּ֥פֶשׁ הַהִ֖וא מִקֶּ֥רֶב עַמֶּֽיהָ׃
所以你們要守安息日,因為這是你們的聖日。凡褻瀆這日的,必被處死;凡在這日做工的,那人必從他的民中被剪除。
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.