Exodus 17:6-10 Amplified Bible (AMP)

6. Behold, I will stand before you there on the rock at [Mount] Horeb; and you shall strike the rock, and water shall come out of it, that the people may drink. And Moses did so in the sight of the elders of Israel. [I Cor. 10:4.]

7. He called the place Massah [proof] and Meribah [contention] because of the faultfinding of the Israelites and because they tempted and tried the patience of the Lord, saying, Is the Lord among us or not?

8. Then came Amalek [descendants of Esau] and fought with Israel at Rephidim.

9. And Moses said to Joshua, Choose us out men and go out, fight with Amalek. Tomorrow I will stand on the top of the hill with the rod of God in my hand.

10. So Joshua did as Moses said and fought with Amalek; and Moses, Aaron, and Hur went up to the hilltop.

Exodus 17