וַיֹּ֤אמֶר יַעֲקֹב֙ אֶל־בֵּית֔וֹ וְאֶ֖ל כָּל־אֲשֶׁ֣ר עִמּ֑וֹ הָסִ֜רוּ אֶת־אֱלֹהֵ֤י הַנֵּכָר֙ אֲשֶׁ֣ר בְּתֹכְכֶ֔ם וְהִֽטַּהֲר֔וּ וְהַחֲלִ֖יפוּ שִׂמְלֹתֵיכֶֽם׃
At sinabi ni Jacob sa kanyang sambahayan at sa lahat ng kasama niya: “Alisin ninyo ang mga diyos ng mga dayuhan na nasa gitna ninyo, at magpakadalisay kayo, at palitan ninyo ang inyong mga kasuotan.
Rashi
הנכר [PUT AWAY] THE STRANGE [GODS] —which you have in your possession from the spoil of Shechem.
Ibn Ezra
1 Remove all of your strange gods. Heaven that a prophet should lie with a woman who worshiped foreign gods! And the explanation for this is as we find in Parashat Vayelech (Deuteronomy 31).