Exodus 17
Water in the Rock
1Then all the congregation of the children of Israel moved on from the Wilderness of Sin by stages, according to the commandment of the Lord, and camped at Rephidim, but there was no water for the people to drink. 2Therefore the people quarreled with Moses and said, “Give us water so we may [have something to] drink.” And Moses said to them, “Why do you quarrel with me? Why do you tempt the Lord and try His patience?” 3But the people were thirsty for water; and the people murmured against Moses and said, “Why did you bring us up from Egypt to kill us and our children and our livestock with thirst?” 4So Moses cried out to the Lord for help, saying, “What shall I do with this people? They are almost ready to stone me.” 5Then the Lord said to Moses, “Pass before the people and take with you some of the elders of Israel; and take in your hand the staff with which you struck the Nile, and go. 6Behold, I will stand before you there on the rock at Horeb; there you shall strike the rock, and water will come out of it, so that the people may [have something to] drink.” And Moses did so in the sight of the elders of Israel. 7He named the place [where this miracle occurred] Massah (test) and Meribah (contention) because of the quarreling of the sons of Israel, and because they tested the [patience of the] Lord, saying, “Is the Lord among us, or not?”
Amalek Fought
8Then Amalek [and his people] came and fought with Israel at Rephidim. 9So Moses said to Joshua, “Choose men for us and go out, fight against Amalek [and his people]. Tomorrow I will stand on the top of the hill with the staff of God in my hand.” 10So Joshua did as Moses said, and fought with Amalek; and Moses, Aaron, and Hur went up to the hilltop. 11Now when Moses held up his hand, Israel prevailed, and when he lowered his hand [due to fatigue], Amalek prevailed. 12But Moses’ hands were heavy and he grew tired. So they took a stone and put it under him, and he sat on it. Then Aaron and Hur held up his hands, one on one side and one on the other side; so it was that his hands were steady until the sun set. 13So Joshua overwhelmed and defeated Amalek and his people with the edge of the sword.
14Then the Lord said to Moses, “Write this in the book as a memorial and recite it to Joshua, that I will utterly wipe out the memory of Amalek [and his people] from under heaven.” 15And Moses built an altar and named it The Lord Is My Banner; 16saying, “The Lord has sworn [an oath]; the Lord will have war against [the people of] Amalek from generation to generation.”