7 Moses called the place Massah and Meribah. That's because the people of Israel argued with him there. They also put the Lord to the test. They asked, "Is the Lord among us or not?"
8 The Amalekites came and attacked the Israelites at Rephidim.
9 Moses said to Joshua, "Choose some of our men. Then go out and fight against the Amalekites. Tomorrow I will stand on top of the hill. I'll stand there with the staff of God in my hands."
10 So Joshua fought against the Amalekites, just as Moses had ordered. Moses, Aaron and Hur went to the top of the hill.
11 As long as Moses held his hands up, the Israelites were winning. But every time he lowered his hands, the Amalekites began to win.
12 When Moses' arms got tired, Aaron and Hur got a stone and put it under him. Then he sat on it. Aaron and Hur held his hands up. Aaron was on one side, and Hur was on the other. Moses' hands remained steady until sunset.
13 So Joshua destroyed the Amalekite army with swords.