Positive commandment · Mitzvat Aseh #124 of 613
Leaving the peret of the vineyard
להניח פרט הכרם לפי שבכל אלו נאמר "לֶעָנִי וְלַגֵּר תַּעֲזֹב אֹתָם" וזו היא מצות עשה שלהם
The verse · Vayikra 19:10
וְכַרְמְךָ לֹא תְעוֹלֵל וּפֶרֶט כַּרְמְךָ לֹא תְלַקֵּט לֶעָנִי וְלַגֵּר תַּעֲזֹב אֹתָם אֲנִי ה׳ אֱלֹהֵיכֶם
“And thou shalt not glean thy vineyard, neither shalt thou gather the single grapes of thy vineyard; thou shalt leave them for the poor and stranger: I am the Lord your God.”
The Rambam’s words
To leave the individual fallen grapes. With regard to all these [five mitzvot], [Leviticus 19:10] states: "Leave them for the poor and the stranger." This [verse states] the positive commandment for all these. the Rambam notes that the command to leave a forgotten sheaf in the field is derived, not from this verse, but from Deuteronomy 24:19, which states: "When you reap your harvest... and forget a sheaf in the field..., it shall be for the stranger..."
להניח פרט הכרם לפי שבכל אלו נאמר "לֶעָנִי וְלַגֵּר תַּעֲזֹב אֹתָם" (ויקרא יט, י) (ויקרא כג, כב) וזו היא מצות עשה שלהם.
Where in the Mishneh Torah
Hilchot Gifts to the Poor הלכות מתנות עניים