At the LORD's command, the people of Israel left the Sin Desert and moved from place to place. Eventually they came to Rephidim, but there was no water to be found there.
References for Exodus 17:1
So once more the people grumbled and complained to Moses. "Give us water to drink!" they demanded. "Quiet!" Moses replied. "Why are you arguing with me? And why are you testing the LORD?"
But tormented by thirst, they continued to complain, "Why did you ever take us out of Egypt? Why did you bring us here? We, our children, and our livestock will all die!"