Would it be that Moses smote the rock rather than spake to it?
Numbers 20:18 - 21
NKJV - 18 Then Edom said to him, "You shall not pass through my land, lest I come out against you with the sword. 19 So the children of Israel said to him, "We will go by the Highway, and if I or my livestock drink any of your water, then I will pay for it; let me only pass through on foot, nothing more.
For follow-up discussion and general commentary on the topic. Comments are sorted chronologically.