7הַלּוֹקֵחַ שֶׁבָּנָה וְהִשְׁבִּיחַ אוֹ סָתַר וְהִפְסִיד בֶּן הַמֵּצַר מְסַלְּקוֹ וְנוֹתֵן לוֹ דָּמִים הָרְאוּיִין לוֹ וַהֲרֵי הוּא בְּכָל מַעֲשָׂיו כְּמוֹ הַשָּׁלִיחַ. וְכֵן אִם לָוָה הַלּוֹקֵחַ קֹדֶם שֶׁיְּסַלֵּק אוֹתוֹ בֶּן הַמֵּצַר וְסִלְּקוֹ בֶּן הַמֵּצַר אֵין בַּעַל חוֹב שֶׁלּוֹ טוֹרֵף מִיַּד בֶּן הַמֵּצַר. זֶהוּ הָעִקָּר בְּכָל אֵלּוּ הַדִּינִין שֶׁכָּל הַלּוֹקֵחַ בְּצַד מֵצַר חֲבֵרוֹ הוּא כְּמוֹ שָׁלִיחַ לַחֲבֵרוֹ וּלְתַקֵּן שְׁלָחוֹ וְלֹא לְעַוֵּת. לְפִיכָךְ אִם הִשְׁבִּיחַ נוֹטֵל הוֹצָאָה. וְאִם הִפְסִיד וְחָפַר וְהָרַס אוֹ אָכַל הַפֵּרוֹת מְנַכִּין אוֹתוֹ מִן הַדָּמִים. בַּמֶּה דְּבָרִים אֲמוּרִים שֶׁמְּחַשְּׁבִין לוֹ הַפֵּרוֹת בְּשֶׁאֲכָלָן אַחַר שֶׁבָּא בֶּן הַמֵּצַר וְהֵבִיא מָעוֹת לְסַלְּקוֹ. אֲבָל כָּל הַפֵּרוֹת שֶׁאָכַל מִקֹּדֶם שֶׁלּוֹ הוּא אוֹכֵל וְאֵין מְחַשְּׁבִין אוֹתָן:
When the purchaser has built or improved the property he purchased, or destroyed or impaired it, when the neighbor displaces him, he must pay him the money that is appropriate for him. In all his deeds, he is considered the agent of the neighbor. Similarly, if the purchaser took a loan before the neighbor displaced him and the neighbor displaced afterwards, his creditor may not expropriate the property from the neighbor. The following principle governs all these laws: Whenever a person purchases property bordering on a colleague's property line, he is considered that person's agent, and it is as if he were sent only to better his interests and not to impair them.Thus, if he improves the property, he receives only his expenses. If he impairs the value of the property by digging, destroying or partaking of its produce, we reduce the money paid to him. When do we take into account the produce of which he partook? When he partook of this produce after the neighbor came and brought money to displace him. This does not apply with regard to the produce of which he partook before that time. On the contrary, he is considered to have partaken of his own produce, and none of it is taken into account.