7. And he called the place Massah and Meribah because the Israelites quarreled and because they tested the Lord saying, “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 and go out to fight the Amalekites. Tomorrow I will stand on top of the hill with the staff of God in my hands.”
10. So Joshua fought the Amalekites as Moses had ordered, and Moses, Aaron and Hur went to the top of the hill.