I've seen a commentary that says Moshe was commanded to speak to the rock but was never told what to say. Now certainly, he wouldn't ask the rock "How ya doin?" So if he wasn't told what exactly to say to the rock, was he supposed to just say "Hey rock, give us some water!" Also, how would he know which rock to speak to?