Directed by GOD, the whole company of Israel moved on by stages from the Wilderness of Sin. They set camp at Rephidim. And there wasn't a drop of water for the people to drink.
But the people were thirsty for water there. They complained to Moses, "Why did you take us from Egypt and drag us out here with our children and animals to die of thirst?"
I'm going to be present before you there on the rock at Horeb. You are to strike the rock. Water will gush out of it and the people will drink." Moses did what he said, with the elders of Israel right there watching.
He named the place Massah (Testing-Place) and Meribah (Quarreling) because of the quarreling of the Israelites and because of their testing of GOD when they said, "Is GOD here with us, or not?"
But Moses' hands got tired. So they got a stone and set it under him. He sat on it and Aaron and Hur held up his hands, one on each side. So his hands remained steady until the sun went down.
GOD said to Moses, "Write this up as a reminder to Joshua, to keep it before him, because I will most certainly wipe the very memory of Amalek off the face of the Earth."