Exodus Chapter 17

1 All the congregation of the children of Israel traveled from the wilderness of Sin, after their journeys, according to the command of the Lord, and they pitched in Rephidim. But there was no water for the people to drink.
2 So the people complained to Moses and said, Give us water so that we may drink. Moses said to them, Why do you complain to me? Why do you tempt the Lord?
3 The people thirsted there for water and they grumbled+ against Moses and said, Why is this, that you brought us up out of Egypt, to kill us and our children and our cattle with thirst?
4 Moses cried out to the Lord saying, What shall I do to this people? They are almost ready to stone me.
5 The Lord said to Moses, Go on in front of the people, and take with you the elders of Israel. And take your rod with which you struck the river, in your hand, and go.
6 Behold, I will stand before you there upon the rock in Horeb and you shall strike the rock and water will come out of it so that the people may drink. Then Moses did so in the sight of the elders of Israel.
7 He called the name of the place Massah, and Meribah, because of the wrangling of the children of Israel, and because they tempted the Lord saying, Is the Lord among us or not?
8 Then Amalek came and fought with Israel in Rephidim.
9 Moses said to Joshua, Choose us out men, and go out to fight with Amalek. Tomorrow I will stand on the top of the hill with the rod of God in my hand.
10 Joshua did as Moses had said to him, and fought with Amalek. And Moses, Aaron, and Hur went to the top of the hill.
11 When Moses held up his hand, Israel prevailed. And when he let down his hand, Amalek prevailed.
12 But Moses' hands became heavy. So they took a stone and put it under him and he sat on it. Aaron and Hur held up his hands, one on one side and the other on the other side. Then his hands were steady until the going down of the sun.
13 Joshua defeated Amalek and his people by the mouth of the sword.
14 The Lord said to Moses, Write this, a memorial in a book and set it in the hearing+ of Joshua. I will utterly put out the remembrance of Amalek from under heavens.
15 Moses built an altar and called the name of it Jehovahshalom The Lord my Banner.
16 He said, A hand is on the throne of the Lord. War is to the Lord with Amalek from generation to generation.