Exodus 17:3-6

3But the people thirsted there for water, and athe people grumbled against Moses and said, “Why did you bring us up out of Egypt, to kill us and our children and our livestock with thirst?” 4So Moses cried to the Lord, “What shall I do with this people? They are almost ready bto stone me.” 5And the Lord said to Moses, “Pass on before the people, taking with you some of the elders of Israel, and take in your hand the staff with cwhich you struck the Nile, and go. 6 dBehold, I will stand before you there on the rock at Horeb, and you shall strike the rock, and water shall come out of it, and the people will drink.” And Moses did so, in the sight of the elders of Israel.
Copyright information for ESV