Positive commandment · Mitzvat Aseh #188 of 613
To exterminate the seed of Amalek
להכרית זרעו של עמלק
The verse · Devarim 25:19
וְהָיָה בְּהָנִיחַ ה׳ אֱלֹהֶיךָ לְךָ מִכׇּל־אֹיְבֶיךָ מִסָּבִיב בָּאָרֶץ אֲשֶׁר ה׳אֱלֹהֶיךָ נֹתֵן לְךָ נַחֲלָה לְרִשְׁתָּהּ תִּמְחֶה אֶת־זֵכֶר עֲמָלֵק מִתַּחַת הַשָּׁמָיִם לֹא תִּשְׁכָּח
“Therefore it shall be, when the Lord thy God has given thee rest from all thy enemies round about, in the land which the Lord thy God gives thee for an inheritance to possess it, that thou shalt blot out the remembrance of ῾Amaleq from under heaven; thou shalt not forget.”
The Rambam’s words
To exterminate the seed of Amalek, as [Deuteronomy 25:19] states: "Blot out the memory of Amalek."
להכרית זרעו של עמלק, שנאמר: "תמחה את זכר עמלק" (דברים כה,יט).
Where in the Mishneh Torah
Hilchot Kings and Wars הלכות מלכים ומלחמות