At the ’s command, the whole community of Israel left the wilderness of Sin and moved from place to place. Eventually they camped at Rephidim, but there was no water there for the people to drink.
References for Exodus 17:1
So once more the people complained against Moses. “Give us water to drink!” they demanded. “Quiet!” Moses replied. “Why are you complaining against me? And why are you testing the ?”
But tormented by thirst, they continued to argue with Moses. “Why did you bring us out of Egypt? Are you trying to kill us, our children, and our livestock with thirst?”