Exodus 17:1-7 NIV
Water From the Rock
1The whole Israelite community set out from the Desert of Sin, traveling from place to place as the Lord commanded. They camped at Rephidim, but there was no water for the people to drink. 2So they quarreled with Moses and said, “Give us water to drink.”
Moses replied, “Why do you quarrel with me? Why do you put the Lord to the test?”
3But the people were thirsty for water there, and they grumbled against Moses. They said, “Why did you bring us up out of Egypt to make us and our children and livestock die of thirst?”
4Then Moses cried out to the Lord, “What am I to do with these people? They are almost ready to stone me.”
5The Lord answered Moses, “Go out in front of the people. Take with you some of the elders of Israel and take in your hand the staff with which you struck the Nile, and go. 6 I will stand there before you by the rock at Horeb. Strike the rock, and water will come out of it for the people to drink.” So Moses did this in the sight of the elders of Israel.
7And he called the place Massaha and Meribahb because the Israelites quarreled and because they tested the Lord saying, “Is the Lord among us or not?”
Christ the Rock Following
I Corinthians 10:4
“And all drank the same spiritual drink. For they drank from the Spiritual Rock that followed them, and the Rock was Christ.”
By which is meant the water out of the rock, which was typical of the blood of Christ, which is drink indeed, and not figurative, as this was, for which reason it is called spiritual; or of the grace of Christ, often signified by water, both in the Old and New Testament; and is what Moses and the law could not give for righteousness and life, grace and salvation, could never be had by the works of the law, but by a crucified Christ.
Those waters did not flow from thence without the rock being stricken by the rod of Moses, so the communication of the blessings of grace from Christ is through His being smitten by Divine Justice with the rod of the law; through His being, stricken for the transgressions of His people, and being made sin, and a curse of the law in their stead. And as those waters continued through the wilderness as a constant supply for them, so the grace of Christ is always sufficient for His people; a continual supply is afforded them; goodness and mercy follow them all the days of their lives.
Spiritual rock that followed them; by which the apostle means not the rock itself but Christ Himself. He went before them as the Angel of God's presence, but the rock that typified Him; not that the rock itself removed out of its place, and went after them, but the waters out of the rock ran like rivers, and followed them in the wilderness wherever they went, for the space of eight and thirty years, and then were stopped. To make trial of their faith once more, this was at Kadesh when the rock was struck again, and gave forth its waters, which, as the continual raining of the manna, was a constant miracle wrought for them.