Devarim (Deuteronomy) Chapter 16

9You shall count seven weeks for yourself; from[the time] the sickle is first put to the standing crop, you shall begin to count seven weeks.   טשִׁבְעָ֥ה שָֽׁבֻעֹ֖ת תִּסְפָּר־לָ֑ךְ מֵֽהָחֵ֤ל חֶרְמֵשׁ֙ בַּקָּמָ֔ה תָּחֵ֣ל לִסְפֹּ֔ר שִׁבְעָ֖ה שָֽׁבֻעֽוֹת:
from [the time] the sickle is first put to the standing crop, [you shall begin to count seven weeks]: [I.e.,] from the time the omer is harvested [on the sixteenth of Nissan], which is the beginning of the harvest. — [see Lev . 23:10, Sifrei ; Men. 71a]   מֵֽהָחֵל חֶרְמֵשׁ בַּקָּמָה: מִשֶּׁנִּקְצַר הָעֹמֶר שֶׁהוּא רֵאשִׁית הַקָּצִיר (עי' ספרי; מנחות ע"א):
10And you shall perform the Festival of Weeks to the Lord, your God, the donation you can afford to give, according to how the Lord, your God, shall bless you.   יוְעָשִׂ֜יתָ חַ֤ג שָֽׁבֻעוֹת֙ לַֽיהֹוָ֣ה אֱלֹהֶ֔יךָ מִסַּ֛ת נִדְבַ֥ת יָֽדְךָ֖ אֲשֶׁ֣ר תִּתֵּ֑ן כַּֽאֲשֶׁ֥ר יְבָֽרֶכְךָ֖ יְהֹוָ֥ה אֱלֹהֶֽיךָ:
the donation you can afford to give: [I.e.,] sufficient generous donation from you; according to the blessing [that God bestows upon you], bring peace offerings of happiness [these are extra peace offerings in addition to the Festival offerings] and invite guests to eat [with you].   מִסַּת נִדְבַת יָֽדְךָ: דֵּי נִדְבַת יָדְךָ, הַכֹּל לְפִי הַבְּרָכָה הָבֵא שַׁלְמֵי שִׂמְחָה וְקַדֵּשׁ קְרוּאִים לֶאֱכֹל:
11And you shall rejoice before the Lord, your God, -you, and your son, and your daughter, and your manservant, and your maidservant, and the Levite who is within your cities, and the stranger, and the orphan, and the widow, who are among you, in the place which the Lord, your God, will choose to establish His Name therein.   יאוְשָֽׂמַחְתָּ֞ לִפְנֵ֣י | יְהֹוָ֣ה אֱלֹהֶ֗יךָ אַתָּ֨ה וּבִנְךָ֣ וּבִתֶּ֘ךָ֘ וְעַבְדְּךָ֣ וַֽאֲמָתֶ֒ךָ֒ וְהַלֵּוִי֙ אֲשֶׁ֣ר בִּשְׁעָרֶ֔יךָ וְהַגֵּ֛ר וְהַיָּת֥וֹם וְהָֽאַלְמָנָ֖ה אֲשֶׁ֣ר בְּקִרְבֶּ֑ךָ בַּמָּק֗וֹם אֲשֶׁ֤ר יִבְחַר֙ יְהֹוָ֣ה אֱלֹהֶ֔יךָ לְשַׁכֵּ֥ן שְׁמ֖וֹ שָֽׁם:
the Levite… the stranger, the orphan, and the widow: [God says:] These are My four, corresponding to your four, [namely,] “Your son, and your daughter, and your manservant, and your maidservant.” If you shall gladden Mine, I will gladden yours. — [Midrash Aggadah, Midrash Hagadol. Compare Tanchuma 18, Pesikta d’Rav Kahana p.100a. Note that in incunabula editions, this comment of Rashi is connected to the preceding one: and invite guests to eat [with you]: the Levite… the stranger, the orphan, and the widow. [God says:] These are My four…]   לוי גר יתום ואלמנה: אַרְבָּעָה שֶׁלִּי כְּנֶגֶד אַרְבָּעָה שֶׁלְּךָ – בנך ובתך ועבדך ואמתך, אִם אַתָּה מְשַׂמֵּחַ אֶת שֶׁלִּי אֲנִי מְשַׂמֵּחַ אֶת שֶׁלְּךָ:
12And you shall remember that you were a slave in Egypt, and you shall keep and perform these statutes.   יבוְזָ֣כַרְתָּ֔ כִּי־עֶ֥בֶד הָיִ֖יתָ בְּמִצְרָ֑יִם וְשָֽׁמַרְתָּ֣ וְעָשִׂ֔יתָ אֶת־הַֽחֻקִּ֖ים הָאֵֽלֶּה:
And you shall remember that you were a slave [in Egypt]: On this condition did I redeem you [from Egypt], that you keep and perform these statutes.   וְזָכַרְתָּ כִּי־עֶבֶד הָיִיתָ וגו': עַל מְנָת כֵּן פְּדִיתִיךָ, שֶׁתִּשְׁמֹר וְתַעֲשֶׂה אֶת הַחֻקִּים הָאֵלֶּה: