In this passage the people of Israel accuse Moses of a capital crime by endangering their lives in the wilderness. By doing this they are putting God to the test. In his grace God “stands before” Moses and instructs him to strike the Rock upon which He is standing with the rod of God’s judgment. God symbolically receives the punishment that Israel deserves and in that way provides the water of life.
Read Exodus 17:1-7