The account of Moshe hitting the rock to get water for his people is one of the most perplexing stories in the entire Bible. Hashem tells him to speak to the rock in order to bring forth water, but Moshe hits the rock instead and is punished by being prevented from entering the Land of Israel, “because you did not trust Me enough to affirm My sanctity in the sight of the B’nei Yisrael.” What could be so terrible about hitting the rock instead of speaking to it? One explanation, given by Rashi, is that while Moshe understood that the water flowing from the rock was God’s doing, he did not make this sufficiently clear to the rest of the Children of Israel. Instead of hitting the rock, which implied that it was his own power that brought forth the water, Moshe should have spoken to it. By failing to do this, he missed an opportunity to attribute greatness to Hashem. It is not enough for us to recognize Hashem in our lives or within history; we have a duty to make sure others recognize Him as well.
Source: Israel in the News