Numbers 20:1-11 NIV
In the first month the whole Israelite community arrived at the Desert of Zin, and they stayed at Kadesh. There Miriam died and was buried.
Now there was no water for the community, and the people gathered in opposition to Moses and Aaron. They quarreled with Moses and said, “If only we had died when our brothers fell dead before the LORD! Why did you bring the LORD’s community into this wilderness, that we and our livestock should die here? Why did you bring us up out of Egypt to this terrible place? It has no grain or figs, grapevines or pomegranates. And there is no water to drink!”
Moses and Aaron went from the assembly to the entrance to the tent of meeting and fell facedown, and the glory of the LORD appeared to them. The LORD said to Moses, “Take the staff, and you and your brother Aaron gather the assembly together. Speak to that rock before their eyes and it will pour out its water. You will bring water out of the rock for the community so they and their livestock can drink.”
So Moses took the staff from the LORD’s presence, just as he commanded him. He and Aaron gathered the assembly together in front of the rock and Moses said to them, “Listen, you rebels, must we bring you water out of this rock?” Then Moses raised his arm and struck the rock twice with his staff. Water gushed out, and the community and their livestock drank.
NIV: New International Version