You teach that Moses was punished by God for striking the rock twice in Numbers 20, but the text says He was punished for striking the rock instead of speaking to it. Which is true?
In Numbers 20 Moses was told to speak to the rock in the desert to bring forth water for Israel:
In frustration with the people of God, Moses chose to strike the rock instead of speaking to it:
Earlier in Exodus, the Lord did instruct Moses to strike the rock to produce water:
So in Exodus 17, Moses obeyed God by striking the rock, but in Numbers 20 Moses disobeyed God by striking the rock instead of speaking to it. The incident in Numbers 20 was the second time Moses struck the rock, the first time being in Exodus 17. Therefore, we teach that Moses was punished for striking the rock twice in the sense of striking it Numbers 20 and in Exodus 17, not in the sense of striking it two times in Numbers 20.
New Testament Scripture in 1Corinthians teaches that the rock in the desert was intended by God to be a picture of His Son, Jesus Christ:
When the Lord instructed Moses to strike the rock in Exodus 17, He intended to establish a picture of Christ as our Redeemer. The Bible says repeatedly in Psalms and Isaiah that Christ is our Rock and Cornerstone struck (i.e., killed) for our sake, and He will bring forth streams of living water (i.e., salvation...see John 4:10). Moreover, Hebrews says Christ died once for all and no further sacrifice for sins is required.
So the Lord intended Moses strike the rock in the desert only once in the scene from Exodus 17, thus picturing Jesus sacrificed once to bring us salvation. Later in Numbers 20, the Lord instructed Moses to only speak to the rock to preserve the picture created in Exodus 17. When Moses chose to strike the rock a second time instead, he disrupted the picture created in Exodus 17. Had God allowed Moses' mistake to go unchallenged, we would likely be confused by the distorted picture, concluding it was necessary for Christ (i.e., the rock) to be sacrificed (i.e., struck) repeatedly for our salvation.
Therefore, God rebuked Moses to assure our proper understanding of the picture of the rock barring him from entering the Promised Land. In the process, the Lord formed a new picture to support a proper understanding of salvation. By barring Moses from the Promised Land, the Lord illustrated that we cannot enter into salvation (i.e., the Promised Land) by works of Law (i.e., by Moses) but only by the work of Jesus (i.e., by Joshua, which is the name Yeshua or Jesus).