They never got thirsty as he led them through the desert, because he made water flow from a rock. He split the rock, and water flowed out.