4 So Moses cried to the Lord, “What can I do with these people? They are almost ready to kill me with stones.”
5 The Lord said to Moses, “Go ahead of the people of Israel. And take some of the elders of Israel with you. Carry with you the walking stick that you used to strike the Nile River. Now go!
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. Then the people can drink.” Moses did these things as the elders of Israel watched.
7 Moses named that place Massah because the Israelites tested the Lord. 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. I will hold the stick God gave me to carry.”
10 Joshua obeyed Moses and went to fight the Amalekites. At the same time Moses, Aaron and Hur went to the top of the hill.