1All the congregation of the people 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 found fault with Moses, and said, “Give us water to drink.” And Moses said to them, “Why do you find fault with me? Why do you put the Lord to the proof?” 3#Ex 14.12; 16.3. But the people thirsted there for water, and the people murmured against Moses, and said, “Why did you bring us up out of Egypt, to kill us and our children and our cattle with thirst?” 4So Moses cried to the Lord, “What shall I do with this people? They are almost ready to stone me.” 5And the Lord said to Moses, “Pass on before the people, taking with you some of the elders of Israel; and take in your hand the rod with which you struck the Nile, and go. 6Behold, I will stand before you there on the rock at Horeb; and you shall strike the rock, and water shall come out of it, that the people may drink.” And Moses did so, in the sight of the elders of Israel. 7And he called the name of the place Massah#17.7 That is Proof and Meribah,#17.7 That is Contention because of the faultfinding of the children of Israel, and because they put the Lord to the proof by saying, “Is the Lord among us or not?”
8Then came Amalek and fought with Israel at Rephidim. 9And Moses said to Joshua, “Choose for us men, and go out, fight with Amalek; tomorrow I will stand on the top of the hill with the rod of God in my hand.” 10So Joshua did as Moses told him, and fought with Amalek; and Moses, Aaron, and Hur went up to the top of the hill. 11Whenever Moses held up his hand, Israel prevailed; and whenever he lowered his hand, Amalek prevailed. 12But Moses' hands grew weary; so they took a stone and put it under him, and he sat upon it, and Aaron and Hur held up his hands, one on one side, and the other on the other side; so his hands were steady until the going down of the sun. 13And Joshua mowed down Amalek and his people with the edge of the sword.
Deut 25.17-19; 1 Sam 15.2-9. And the Lord said to Moses, “Write this as a memorial in a book and recite it in the ears of Joshua, that I will utterly blot out the remembrance of Amalek from under heaven.” 15And Moses built an altar and called the name of it, The Lord is my banner, 16saying, “A hand upon the banner of the Lord!#17.16 Cn: Heb obscure The Lord will have war with Amalek from generation to generation.”