Contains sugyot about using a gentile's Shabbat labor and the general rules for when a Jew may benefit from it, which underlie later discussions about elevators and similar conveniences.
מַתְנִי׳ גּוֹי שֶׁהִדְלִיק אֶת הַנֵּר — מִשְׁתַּמֵּשׁ לְאוֹרוֹ יִשְׂרָאֵל. וְאִם בִּשְׁבִיל יִשְׂרָאֵל — אָסוּר. מִילֵּא מַיִם לְהַשְׁקוֹת בְּהֶמְתּוֹ — מַשְׁקֶה אַחֲרָיו יִשְׂרָאֵל, וְאִם בִּשְׁבִיל יִשְׂרָאֵל — אָסוּר. עָשָׂה גּוֹי כֶּבֶשׁ לֵירֵד בּוֹ — יוֹרֵד אַחֲרָיו יִשְׂרָאֵל, וְאִם בִּשְׁבִיל יִשְׂרָאֵל — אָסוּר. מַעֲשֶׂה בְּרַבָּן גַּמְלִיאֵל וּזְקֵנִים שֶׁהָיוּ בָּאִין בִּסְפִינָה וְעָשָׂה גּוֹי כֶּבֶשׁ לֵירֵד בּוֹ, וְיָרְדוּ בּוֹ רַבָּן גַּמְלִיאֵל וּזְקֵנִים. תָּנוּ רַבָּנַן: גּוֹי שֶׁלִּיקֵּט עֲשָׂבִים — מַאֲכִיל אַחֲרָיו יִשְׂרָאֵל, וְאִם בִּשְׁבִיל יִשְׂרָאֵל — אָסוּר. מִילֵּא מַיִם לְהַשְׁקוֹת בְּהֶמְתּוֹ — מַשְׁקֶה אַחֲרָיו יִשְׂרָאֵל, וְאִם בִּשְׁבִיל יִשְׂרָאֵל — אָסוּר. בַּמֶּה דְּבָרִים אֲמוּרִים — שֶׁאֵין מַכִּירוֹ, אֲבָל מַכִּירוֹ — אָסוּר.
MISHNA: If a gentile kindled a lamp on Shabbat for his own purposes, a Jew also uses its light; and if the gentile kindled it for a Jew, the Sages prohibited to utilize its light. Similarly, if a gentile drew water from a well in the public domain to give his animal to drink, a Jew gives his own animal to drink after him from the same water; and if he drew the water initially for the benefit of a Jew, it is prohibited for a Jew to give his animal to drink from that water. Similarly, if a gentile made a ramp on Shabbat to disembark from a ship, a Jew disembarks after him; and if he made the ramp for a Jew, it is prohibited. There was an incident in which Rabban Gamliel and the Elders were traveling on a ship and a gentile made a ramp on Shabbat in order to disembark from the ship on it; and Rabban Gamliel and the Elders disembarked on it as well. The Sages taught: If a gentile collected grass on Shabbat for himself, in order to feed his animal, a Jew may feed his own animal after him, and if he collected it for the benefit of a Jew, it is prohibited. If he drew water to give his animal to drink, a Jew may give water to his own animal to drink after him, and if he drew it for the benefit of a Jew it is prohibited. In what case is this statement, that if the gentile acted for himself it is permitted for a Jew to benefit, said? When the gentile does not know him; however, if the gentile knows him, it is prohibited, as in that case, he certainly intended to benefit his Jewish acquaintance as well.