So Moses did as he was told. He took the staff from the place where it was kept before the LORD.
Then he and Aaron summoned the people to come and gather at the rock. "Listen, you rebels!" he shouted. "Must we bring you water from this rock?"
Then Moses raised his hand and struck the rock twice with the staff, and water gushed out. So all the people and their livestock drank their fill.
But the LORD said to Moses and Aaron, "Because you did not trust me enough to demonstrate my holiness to the people of Israel, you will not lead them into the land I am giving them!"
This place was known as the waters of Meribah, because it was where the people of Israel argued with the LORD, and where he demonstrated his holiness among them.
References for Numbers 20:13
While Moses was at Kadesh, he sent ambassadors to the king of Edom with this message: "This message is from your relatives, the people of Israel: You know all the hardships we have been through,
and that our ancestors went down to Egypt. We lived there a long time and suffered as slaves to the Egyptians.
But when we cried out to the LORD, he heard us and sent an angel who brought us out of Egypt. Now we are camped at Kadesh, a town on the border of your land.
Please let us pass through your country. We will be careful not to go through your fields and vineyards. We won't even drink water from your wells. We will stay on the king's road and never leave it until we have crossed the opposite border."
But the king of Edom said, "Stay out of my land or I will meet you with an army!"
The Israelites answered, "We will stay on the main road. If any of our livestock drinks your water, we will pay for it. We only want to pass through your country and nothing else."