Exodus 17 is the 17th Chapter in the Book of Exodus (NIV and KJV included) also known as the second book of the Bible.
Exodus 17 NIV Version in the Bible
This is the New International Version (NIV) of Exodus 17 in the Bible i.e. named as The Water from the Rock.
17.1 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 and Meribah 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, the Lord will be at war against the Amalekites from generation to generation.”
Exodus 17 KJV Version in the Bible
This is the King James Version (KJV) of Exodus 17 in the Bible i.e. named as The Water from the Rock.
17.1 And all the congregation of the children of Israel journeyed from the wilderness of Sin, after their journeys, according to the commandment of the Lord, and pitched in Rephidim: and there was no water for the people to drink.
2 Wherefore the people did chide with Moses, and said, Give us water that we may drink. And Moses said unto them, Why chide ye with me? wherefore do ye tempt the Lord?
3 And the people thirsted there for water; and the people murmured against Moses, and said, Wherefore is this that thou hast brought us up out of Egypt, to kill us and our children and our cattle with thirst?
4 And Moses cried unto the Lord, saying, What shall I do unto this people? they be almost ready to stone me.
5 And the Lord said unto Moses, Go on before the people, and take with thee of the elders of Israel; and thy rod, wherewith thou smotest the river, take in thine hand, and go.
6 Behold, I will stand before thee there upon the rock in Horeb; and thou shalt smite the rock, and there shall come water out of it, that the people may drink. And Moses did so in the sight of the elders of Israel.
7 And he called the name of the place Massah, and Meribah, because of the chiding of the children of Israel, and because they tempted the Lord, saying, Is the Lord among us, or not?
8 Then came Amalek, and fought with Israel in Rephidim.
9 And Moses said unto Joshua, Choose us out men, and go out, fight with Amalek: to morrow I will stand on the top of the hill with the rod of God in mine hand.
10 So Joshua did as Moses had said to him, and fought with Amalek: and Moses, Aaron, and Hur went up to the top of the hill.
11 And it came to pass, when Moses held up his hand, that Israel prevailed: and when he let down his hand, Amalek prevailed.
12 But Moses hands were heavy; and they took a stone, and put it under him, and he sat thereon; and Aaron and Hur stayed up his hands, the one on the one side, and the other on the other side; and his hands were steady until the going down of the sun.
13 And Joshua discomfited Amalek and his people with the edge of the sword.
14 And the Lord said unto Moses, Write this for a memorial in a book, and rehearse it in the ears of Joshua: for I will utterly put out the remembrance of Amalek from under heaven.
16 For he said, Because the Lord hath sworn that the Lord will have war with Amalek from generation to generation.
You can also read about Exodus 16.