According to Exodus 17, how did Moses obtain water for the people to drink?
By smiting a rock
And the LORD said unto Moses ... I will stand before thee there upon the rock in Horeb;
and thou shalt smite the rock, and there shall come water out of it, that the people may drink.
And Moses did so in the sight of the elders of Israel.
Exodus 17:5