The whole Israelite community left the desert of Sin, moving from one place to another at the command of the Lord. They camped at Rephidim, but there was no water there to drink. 1
References for Exodus 17:1
17.1-7 Nu 20.2-13.
They complained to Moses and said, "Give us water to drink." Moses answered, "Why are you complaining? Why are you putting the Lord to the test?"
But the people were very thirsty and continued to complain to Moses. They said, "Why did you bring us out of Egypt? To kill us and our children and our livestock with thirst?"
Moses prayed earnestly to the Lord and said, "What can I do with these people? They are almost ready to stone me."
The Lord said to Moses, "Take some of the leaders of Israel with you, and go on ahead of the people. Take along the stick with which you struck the Nile.
I will stand before you on a rock at Mount Sinai. Strike the rock, and water will come out of it for the people to drink." Moses did so in the presence of the leaders of Israel.
The place was named Massah and Meribah, because the Israelites complained and put the Lord to the test when they asked, "Is the Lord with us or not?"
References for Exodus 17:7