Exodus 17:9-14

9So Moses said to a  Joshua, “Choose for us men, and go out and fight with Amalek. Tomorrow I will stand on the top of the hill with b  the staff of God in my hand.” 10So c  Joshua did as Moses told him, and fought with Amalek, while Moses, Aaron, and d  Hur went up to the top of the hill. 11Whenever Moses e  held up his hand, Israel prevailed, and whenever he lowered his hand, Amalek prevailed. 12But Moseshands grew weary, so they took a stone and put it under him, and he sat on it, while Aaron and f  Hur held up his hands, one on one side, and the other on the other side. So his hands were steady until the going down of the sun. 13And g  Joshua overwhelmed Amalek and his people with the sword.

14Then the  Lord said to Moses, “Write this as a memorial in a book and recite it in the ears of h  Joshua, that i  I will utterly blot out the memory of Amalek from under heaven.”
Copyright information for ESV