The LORD spoke to Moses,
"Take the staff and assemble the community. You and your brother Aaron are to speak to the rock while they watch, and it will yield its water. You will bring out water for them from the rock and provide drink for the community and their livestock."
So Moses took the staff from the LORD's presence just as He had commanded him.
Moses and Aaron summoned the assembly in front of the rock, and Moses said to them, "Listen, you rebels! Must we bring water out of this rock for you?"
Then Moses raised his hand and struck the rock twice with his staff, so that a great amount of water gushed out, and the community and their livestock drank.
But the LORD said to Moses and Aaron, "Because you did not trust Me to show My holiness in the sight of the Israelites, you will not bring this assembly into the land I have given them."