The whole Israelite community set out from the Desert of Sin, traveling from place to place as the LORD commanded. They camped at Rephidim, but there was no water for the people to drink.
So they quarreled with Moses and said, “Give us water to drink.” Moses replied, “Why do you quarrel with me? Why do you put the LORD to the test?”
But the people were thirsty for water there, and they grumbled against Moses. They said, “Why did you bring us up out of Egypt to make us and our children and livestock die of thirst?”
Then Moses cried out to the LORD, “What am I to do with these people? They are almost ready to stone me.”
The LORD answered Moses, “Go out in front of the people. Take with you some of the elders of Israel and take in your hand the staff with which you struck the Nile, and go.
I will stand there before you by the rock at Horeb. Strike the rock, and water will come out of it for the people to drink.” So Moses did this in the sight of the elders of Israel.
And he called the place Massah and Meribah because the Israelites quarreled and because they tested the LORD saying, “Is the LORD among us or not?”