7 He named that place Massah [Testing] and Meribah [Complaining] because the Israelites complained and because they tested the Lord, asking, “Is the Lord with us or not?”
8 The Amalekites fought Israel at Rephidim.
9 Moses said to Joshua, “Choose some of our men. Then fight the Amalekites. Tomorrow I will stand on top of the hill. I will hold in my hand the staff God told me to take along.”
10 Joshua did as Moses told him and fought the Amalekites, while Moses, Aaron, and Hur went to the top of the hill.
11 As long as Moses held up his hands, Israel would win, but as soon as he put his hands down, the Amalekites would start to win.
12 Eventually, Moses’ hands felt heavy. So Aaron and Hur took a rock, put it under him, and he sat on it. Aaron held up one hand, and Hur held up the other. His hands remained steady until sunset.
13 So Joshua defeated the Amalekite army in battle.