8Then Amalek came and fought against Israel at Rephidim. 9So Moses said to Joshua, “Choose men for us and go out, fight against Amalek. Tomorrow I will station myself on the top of the hill with the staff of God in my hand.” 10Joshua did as Moses told him, and fought against Amalek; and Moses, Aaron, and Hur went up to the top of the hill. 11So it came about when Moses held his hand up, that Israel prevailed, and when he let his hand down, Amalek prevailed. 12But Moses’ hands were heavy. Then they took a stone and put it under him, and he sat on it; and Aaron and Hur supported his hands, one on one side and one on the other. Thus his hands were steady until the sun set. 13So Joshua overwhelmed Amalek and his people with the edge of the sword.
14Then the Lord said to Moses, “Write this in a book as a memorial and recite it to Joshua, that I will utterly blot out the memory of Amalek from under heaven.” 15Moses built an altar and named it The Lord is My Banner; 16and he said, “The Lord has sworn; the Lord will have war against Amalek from generation to generation.”