Chapter 30
General Rules Relating to Actions Performed by a Non-Jew on Shabbath and Yom Tov
BENEFITING FROM A TORAH PROHIBITION PERFORMED BY A NON-JEW FOR A JEW
37.a. In general, no Jew is allowed to derive a direct, substantive benefit on Shabbath from a light which a non-Jew has turned on for a Jew on Shabbath,
1) even if the non-Jew turned the light on of his own volition, without so much as the slightest hint from a Jew,
2) even if the Jew who desires to use the light is not the Jew for whom it was turned on and
3) even if the intention of the Jew is to use the light for the purpose of performing a mitzva, as where it enables him to pray or to study Torah.
37.b. Whether and how the prohibition applies depends on the circumstances in which the light was turned on, as is explained in the following paragraph.

