6. I will be standing before you there on the rock in Horeb, and you will strike the rock, and water will come out of it so that the people may drink.” And Moses did so in plain view of the elders of Israel.
7. He called the name of the place Massah and Meribah, because of the contending of the Israelites and because of their testing the Lord, saying, “Is the Lord among us or not?”
8. Amalek came and attacked Israel in Rephidim.
9. So Moses said to Joshua, “Choose some of our men and go out, fight against Amalek. Tomorrow I will stand on top of the hill with the staff of God in my hand.”
10. So Joshua fought against Amalek just as Moses had instructed him;and Moses and Aaron and Hur went up to the top of the hill.