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.
The people took Moses to task: "Give us water to drink." But Moses said, "Why pester me? Why are you testing God?"
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?"
Moses cried out in prayer to God, "What can I do with these people? Any minute now they'll kill me!"
God said to Moses, "Go on out ahead of the people, taking with you some of the elders of Israel. Take the staff you used to strike the Nile. And go.
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."
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?"