(Deuteronomy 25:19:) "And it shall come to pass, when the LORD your God grants you rest from all your enemies round about… you shall blot out the remembrance of Amalek." Rabbi Azariah said that Rabbi Judah bar Simon said in the name of Rabbi Judah bar Il'ai: Israel was commanded concerning three commandments upon their entry into the Land,
Three Commandments Israel Received on Entering the Land
Midrash Tanchuma Buber, Ki Teitzei 17:1
והיה בהניח ה' אלהיך לך וגו' תמחה את זכר עמלק (דברים כה יט). אמר ר' עזריה אמר ר' יהודה בר סימון בשם ר' יהודה בר אלעאי, על שלש מצות נצטוו ישראל בכניסתן לארץ,