Amalek came and fought Israel at Rephidim.
Moses ordered Joshua: "Select some men for us and go out and fight Amalek. Tomorrow I will take my stand on top of the hill holding God's staff."
Joshua did what Moses ordered in order to fight Amalek. And Moses, Aaron, and Hur went to the top of the hill.
It turned out that whenever Moses raised his hands, Israel was winning, but whenever he lowered his hands, Amalek was winning.
But Moses' hands got tired. So they got a stone and set it under him. He sat on it and Aaron and Hur held up his hands, one on each side. So his hands remained steady until the sun went down.
Joshua defeated Amalek and its army in battle.
God said to Moses, "Write this up as a reminder to Joshua, to keep it before him, because I will most certainly wipe the very memory of Amalek off the face of the Earth."
Moses built an altar and named it "God My Banner."
He said, Salute God's rule! God at war with Amalek Always and forever!