Exodus 17

1And the children of Israel went on from the waste land of Sin, by stages as the Lord gave them orders, and put up their tents in Rephidim: and there was no drinking-water for the people. 2So the people were angry with Moses, and said, Give us water for drinking. And Moses said, Why are you angry with me? and why do you put God to the test? 3And the people were in great need of water; and they made an outcry against Moses, and said, Why have you taken us out of Egypt to send death on us and our children and our cattle through need of water? 4And Moses, crying out to the Lord, said, What am I to do to this people? they are almost ready to put me to death by stoning. 5And the Lord said to Moses, Go on before the people, and take some of the chiefs of Israel with you, and take in your hand the rod which was stretched out over the Nile, and go. 6See, I will take my place before you on the rock in Horeb; and when you give the rock a blow, water will come out of it, and the people will have drink. And Moses did so before the eyes of the chiefs of Israel. 7And he gave that place the name Massah and Meribah, because the children of Israel were angry, and because they put the Lord to the test, saying, Is the Lord with us or not? 8Then Amalek came and made war on Israel in Rephidim. 9And Moses said to Joshua, Get together a band of men for us and go out, make war on Amalek: tomorrow I will take my place on the top of the hill with the rod of God in my hand. 10So Joshua did as Moses said to him, and went to war with Amalek: and Moses, Aaron, and Hur went up to the top of the hill. 11Now while Moses' hand was lifted up, Israel was the stronger: but when he let his hand go down, Amalek became the stronger. 12But Moses' hands became tired; so they put a stone under him and he took his seat on it, Aaron and Hur supporting his hands, one on one side and one on the other; so his hands were kept up without falling till the sun went down. 13And Joshua overcame Amalek and his people with the sword. 14And the Lord said to Moses, Make a record of this in a book, so that it may be kept in memory, and say it again in the ears of Joshua: that all memory of Amalek is to be completely uprooted from the earth. 15Then Moses put up an altar and gave it the name of Yahweh-nissi: 16For he said, The Lord has taken his oath that there will be war with Amalek from generation to generation.

Matthew Henry's Commentary

The Israelites murmur for water at Rephidim, God sendeth it out of the rock. (1-7) Amalek overcome, The prayers of Moses. (8-16) 1-7 The children of Israel journeyed according to the commandment of the Lord, led by the pillar of cloud and fire, yet they came to a place where there was no water for them to drink. We may be in the way of duty, yet may meet with troubles, which Providence brings us into, for the trial of our faith, and that God may be glorified in our relief. They began to question whether God was with them or not. This is called their "tempting God," which signifies distrust of him after they had received such proofs of his power and goodness. Moses mildly answered them. It is folly to answer passion with passion; that makes bad worse. God graciously appeared to help them. How wonderful the patience and forbearance of God toward provoking sinners! That he might show his power as well as his pity, and make it a miracle of mercy, he gave them water out of a rock. God can open fountains for us where we least expect them. Those who, in this wilderness, keep to God's way, may trust him to provide for them. Also, let this direct us to depend on Christ's grace. The apostle says, that Rock was Christ, #1Co 10:4|, it was a type of him. While the curse of God might justly have been executed upon our guilty souls, behold the Son of God is smitten for us. Let us ask and receive. There was a constant, abundant supply of this water. Numerous as believers are, the supply of the Spirit of Christ is enough for all. The water flowed from the rock in streams to refresh the wilderness, and attended them on their way towards Canaan; and this water flows from Christ, through the ordinances, in the barren wilderness of this world, to refresh our souls, until we come to glory. A new name was given to the place, in remembrance, not of the mercy of their supply, but of the sin of their murmuring: "Massah," Temptation, because they tempted God; "Meribah," Strife, because they chid with Moses. Sin leaves a blot upon the name. 8-16 Israel engaged with Amalek in their own necessary defence. God makes his people able, and calls them to various services for the good of his church. Joshua fights, Moses prays, both minister to Israel. The rod was held up, as the banner to encourage the soldiers. Also to God, by way of appeal to him. Moses was tired. The strongest arm will fail with being long held out; it is God only whose hand is stretched out still. We do not find that Joshua's hands were heavy in fighting, but Moses' hands were heavy in praying; the more spiritual any service is, the more apt we are to fail and flag in it. To convince Israel that the hand of Moses, whom they had been chiding, did more for their safety than their own hands, his rod than their sword, the success rises and falls as Moses lifts up or lets down his hands. The church's cause is more or less successful, as her friends are more or less strong in faith, and fervent in prayer. Moses, the man of God, is glad of help. We should not be shy, either of asking help from others, or of giving help to others. The hands of Moses being thus stayed, were steady till the going down of the sun. It was great encouragement to the people to see Joshua before them in the field of battle, and Moses above them on the hill. Christ is both to us; our Joshua, the Captain of our salvation, who fights our battles, and our Moses, who ever lives, making intercession above, that our faith fail not. Weapons formed against God's Israel cannot prosper long, and shall be broken at last. Moses must write what had been done, what Amalek had done against Israel; write their bitter hatred; write their cruel attempts; let them never be forgotten, nor what God had done for Israel in saving them from Amalek. Write what should be done; that in process of time Amalek should be totally ruined and rooted out. Amalek's destruction was typical of the destruction of all the enemies of Christ and his kingdom.