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.
The people chided Moses.
The people: Give us water that we may drink.
Moses: Why do you chide me? Why do you tempt the Lord?
The people thirsted there for water; and the people murmured against Moses.
The people: Why have you brought us up out of Egypt, to kill us and our children and our cattle with thirst?
Moses cried out to the Lord.
Moses: What shall I do for this people? They are almost ready to stone me.
The Lord (to Moses): Go on before the people, and take with you of the elders of Israel; and your rod, with which you struck the river, take in your hand, and go. Behold, I will stand before you there on the rock in Horeb; and you shall strike the rock, and water shall come out of it, that the people may drink.
Moses did so in the sight of the elders of Israel. 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?
Then the Amalek came and fought with Israel in Rephidim.
Moses (to Joshua): Choose men and go out, fight with Amalek. Tomorrow I will stand on the top of the hill with the rod of God in mine hand.
So Joshua did as Moses had said to him and fought with Amalek.
Moses, Aaron, and Hur went up to the top of the hill. And when Moses held up his hand, Israel prevailed: and when he let down his hand, Amalek prevailed. But Moses’ hands were heavy; and they took a stone and put it under him, and he sat on it; and Aaron and Hur held 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.
And Joshua discomfited Amalek and his people with the edge of the sword.
The Lord (to 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.
Moses built an altar, and called the name of it Jehovahnissi: For he said, Because the Lord has sworn that the He will have war with Amalek from generation to generation.