6 I will stand in front of you on a rock at Mount Sinai. Hit that rock with the stick, and water will come out of it so that the people can drink.” Moses did these things as the elders of Israel watched.
7 He named that place Massah, because the Israelites tested the Lord when they asked, “Is the Lord with us or not?” He also named it Meribah, because they quarreled.
8 At Rephidim the Amalekites came and fought the Israelites.
9 So Moses said to Joshua, “Choose some men and go and fight the Amalekites. Tomorrow I will stand on the top of the hill, holding the walking stick of God in my hands.”
10 Joshua obeyed Moses and went to fight the Amalekites, while Moses, Aaron, and Hur went to the top of the hill.
11 As long as Moses held his hands up, the Israelites would win the fight, but when Moses put his hands down, the Amalekites would win.
12 Later, when Moses’ arms became tired, the men put a large rock under him, and he sat on it. Then Aaron and Hur held up Moses’ hands—Aaron on one side and Hur on the other. They kept his hands steady until the sun went down.