Devarim23:25

כִּי תָבֹא בְּכֶרֶם רֵעֶךָ וְאָכַלְתָּ עֲנָבִים כְּנַפְשְׁךָ שָׂבְעֶךָ וְאֶל־כֶּלְיְךָ לֹא תִתֵּן׃

When you come into your neighbour's vineyard, you may eat grapes as you please, until you are satisfied, but you shall not put any in your basket.

Devarim 23:25

כִּי תָבֹא בְּכֶרֶם

Devarim / Deuteronomy 23:25 · Drash

Devarim 23:25

כִּי תָבֹא בְּכֶרֶם רֵעֶךָ וְאָכַלְתָּ עֲנָבִים כְּנַפְשְׁךָ שָׂבְעֶךָ וְאֶל־כֶּלְיְךָ לֹא תִתֵּן׃

When you come into your neighbour's vineyard, you may eat grapes as you please, until you are satisfied, but you shall not put any in your basket.

Drash דְּרָשׁ

Pay and fullness

How much may you take from the one you work for? The sages argued about the measure, and each drew it from one word.

Midrash Tannaim: Akavya ben Mahalalel teaches that a worker eats only while working, like an ox whose mouth may not be muzzled while threshing. Sifrei: Rabbi Elazar ben Chisma says a worker does not eat more than his pay. And the sages say: the word "until you are satisfied" permits eating even beyond the pay.

How Midrash Tannaim and Sifrei explain it

Midrash Tannaim When you come into your neighbor's vineyard

Akavya ben Mahalalel says: the verse speaks of a worker and of the time of work. You say: of the time of work. Or both at the time of work and not at the time of work? The verse teaches: "Do not muzzle an ox when it threshes" (Devarim / Deuteronomy 25:4). Since the Torah permitted the animal and permitted the person, then as the animal is permitted only at the time of work, so the person is permitted only at the time of work.

Sifrei As you please, until you are satisfied

Rabbi Elazar ben Chisma says: from where that a worker should not eat more than his pay? The verse teaches: "as you please" (כְּנַפְשְׁךָ). And the sages say: "until you are satisfied" teaches that a worker eats even more than his pay.

Takeaway

Akavya ben Mahalalel was a sage of the Mishnah in the time of the Temple. His words "Know where you came from, where you are going, and before Whom you will give account" are in the Mishnah (Avot 3:1).
The ox at threshing (Devarim / Deuteronomy 25:4) eats while it works. The midrash compares the person to it.
Rabbi Elazar ben Chisma reads "as you please" (כְּנַפְשְׁךָ) as "according to your soul," that is, by the measure of your pay. The same dispute is in the Mishnah (Bava Metzia 7:5).