Exodus 17:13-15
So Joshua defeated Amalek and his people with the edge of the sword.
Then the Lord said to Moses, “Write this for a memorial in the book and recount it in the hearing of Joshua, that I will utterly blot out the remembrance of Amalek from under heaven.” And Moses built an altar and called its name, The-Lord-Is-My-Banner;