Exodus 17 Amplified Bible, Classic Edition (AMPC)
17 All the congregation of the Israelites moved on from the Wilderness of Sin by stages, according to the commandment of the Lord, and encamped at Rephidim; but there was no water for the people to drink.
2 Therefore, the people contended with Moses, and said, Give us water that we may drink. And Moses said to them, Why do you find fault with me? Why do you tempt the Lord and try His patience?
3 But the people thirsted there for water, and the people murmured against Moses, and said, Why did you bring us up out of Egypt to kill us and our children and livestock with thirst?
4 So Moses cried to the Lord, What shall I do with this people? They are almost ready to stone me.
5 And the Lord said to Moses, Pass on before the people, and take with you some of the elders of Israel; and take in your hand the rod with which you smote the river [Nile], and go.
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.
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.
11 When Moses held up his hand, Israel prevailed; and when he lowered his hand, Amalek prevailed.
12 But Moses’ hands were heavy and grew weary. So [the other men] took a stone and put it under him and he sat on it. Then Aaron and Hur held up his hands, one on one side and one on the other side; so his hands were steady until the going down of the sun.
13 And Joshua mowed down and disabled Amalek and his people with the sword.
14 And the Lord said to Moses, Write this for a memorial in the book and rehearse it in the ears of Joshua, that I will utterly blot out the remembrance of Amalek from under the heavens.
15 And Moses built an altar and called the name of it, The Lord is my Banner;
16 And he said, Because [theirs] is a hand against the throne of the Lord, the Lord will have war with Amalek from generation to generation.
Exodus 17 New International Version (NIV)
Water From the Rock
17 The whole Israelite community set out from the Desert of Sin, traveling from place to place as the Lord commanded. They camped at Rephidim, but there was no water for the people to drink. 2 So they quarreled with Moses and said, “Give us water to drink.”
Moses replied, “Why do you quarrel with me? Why do you put the Lord to the test?”
3 But the people were thirsty for water there, and they grumbled against Moses. They said, “Why did you bring us up out of Egypt to make us and our children and livestock die of thirst?”
4 Then Moses cried out to the Lord, “What am I to do with these people? They are almost ready to stone me.”
5 The Lord answered Moses, “Go out in front of the people. Take with you some of the elders of Israel and take in your hand the staff with which you struck the Nile, and go. 6 I will stand there before you by the rock at Horeb. Strike the rock, and water will come out of it for the people to drink.” So Moses did this in the sight of the elders of Israel. 7 And he called the place Massah[a] and Meribah[b] because the Israelites quarreled and because they tested the Lord saying, “Is the Lord among us or not?”
The Amalekites Defeated
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. 11 As long as Moses held up his hands, the Israelites were winning, but whenever he lowered his hands, the Amalekites were winning. 12 When Moses’ hands grew tired, they took a stone and put it under him and he sat on it. Aaron and Hur held his hands up—one on one side, one on the other—so that his hands remained steady till sunset. 13 So Joshua overcame the Amalekite army with the sword.
14 Then the Lord said to Moses, “Write this on a scroll as something to be remembered and make sure that Joshua hears it, because I will completely blot out the name of Amalek from under heaven.”
15 Moses built an altar and called it The Lord is my Banner. 16 He said, “Because hands were lifted up against[c] the throne of the Lord,[d] the Lord will be at war against the Amalekites from generation to generation.”