635. Intentional vs. Unintentional Violations
Shabbos 6:23
Let’s say that a Jew performed an act of labor on Shabbos. If he intentionally violated Shabbos, he may never benefit from that act of labor but other Jews may benefit from it immediately after Shabbos. This is derived from Exodus 31:14, “You shall observe the Sabbath because it is holy.” The Sages inferred that Shabbos is holy but the products of labor performed on Shabbos are not holy. Therefore, if a Jew cooks on Shabbos in blatant disregard of the law, other Jews may eat the food on Saturday night but the one who cooked it may never eat from it. If he cooked without knowing that he was violating Shabbos, both he and other Jews may eat the food immediately after Shabbos. The same is true in all similar cases.
Shabbos 6:24
If produce was taken beyond a city’s Shabbos boundary (techum) and then brought back in without intention to violate the Shabbos laws, it may be eaten on Shabbos since nothing was done to the produce itself and its condition remains unchanged. If the produce was brought back in intentionally violating the Shabbos laws, then it may not be eaten until after Shabbos.