וְשָׂמַחְתָּ֞ לִפְנֵ֣י ׀ יְהוָ֣ה אֱלֹהֶ֗יךָ אַתָּ֨ה וּבִנְךָ֣ וּבִתֶּךָ֮ וְעַבְדְּךָ֣ וַאֲמָתֶךָ֒ וְהַלֵּוִי֙ אֲשֶׁ֣ר בִּשְׁעָרֶ֔יךָ וְהַגֵּ֛ר וְהַיָּת֥וֹם וְהָאַלְמָנָ֖ה אֲשֶׁ֣ר בְּקִרְבֶּ֑ךָ בַּמָּק֗וֹם אֲשֶׁ֤ר יִבְחַר֙ יְהוָ֣ה אֱלֹהֶ֔יךָ לְשַׁכֵּ֥ן שְׁמ֖וֹ שָֽׁם׃
E te alegrarás diante de Yehovah, teu Elohim, tu, teu filho, tua filha, teu servo, tua serva, e o Levi que está dentro das tuas portas, e o convertido, e o órfão, e a viúva que estão no meio de ti, no lugar que Yehovah, teu Elohim, escolher para fazer habitar Seu Nome ali.
Ibn Ezra
you must remember that you were a slave… follows from the earlier mention of “…your man-servant and your maid-servant” [: 11].