From the wilderness of Sin the whole congregation of the Israelites journeyed by stages, as the LORD commanded. They camped at Rephidim, but there was no water for the people to drink.
But the people thirsted there for water; and the people complained against Moses and said, "Why did you bring us out of Egypt, to kill us and our children and livestock with thirst?"
The LORD said to Moses, "Go on ahead of the people, and take some of the elders of Israel with you; take in your hand the staff with which you struck the Nile, and go.
I will be standing there in front of you on the rock at Horeb. Strike the rock, and water will come out of it, so that the people may drink." Moses did so, in the sight of the elders of Israel.
Moses said to Joshua, "Choose some men for us and go out, fight with Amalek. Tomorrow I will stand on the top of the hill with the staff of God in my hand."
But Moses' hands grew weary; 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; so his hands were steady until the sun set.
Then the LORD said to Moses, "Write this as a reminder in a book and recite it in the hearing of Joshua: I will utterly blot out the remembrance of Amalek from under heaven."