1And all the congregation of the sons of Israel journeyed from the wilderness of Sin, by their journeys, according to the commandment of LORD, and encamped in Rephidim. And there was no water for the people to drink. 2Therefore the people contended with Moses, and said, Give us water that we may drink. And Moses said to them, Why do ye contend with me? Why do ye challenge LORD? 3And the people thirsted there for water. And the people murmured against Moses, and said, Why have thou brought us up out of Egypt, to kill us and our sons and our cattle with thirst? 4And Moses cried to LORD, saying, What shall I do to this people? They are almost ready to stone me. 5And LORD said to Moses, Pass on before the people, and take with thee from the elders of Israel, and thy rod, with which thou smote the river, take in thy hand, and go. 6Behold, I will stand before thee there upon the rock in Horeb, and thou shall smite the rock, and there shall come water 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 and Meribah, because of the contending of the sons of Israel, and because they challenged LORD, saying, Is LORD among us, or not? 8Then Amalek came, and fought with Israel in Rephidim. 9And Moses said to Joshua, Choose us out 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 had said to him, and fought with Amalek. And Moses, Aaron, and Hur went up to the top of the hill. 11And it came to pass, when Moses held up his hand, that Israel prevailed, and when he let down his hand, Amalek prevailed. 12But Moses' hands were heavy. And they took a stone, and put it under him, and he sat on it. and Aaron and Hur held up his hands, the one on the one side, and the other on the other side. And his hands were steady until the going do 13And Joshua weakened Amalek and his people with the edge of the sword. 14And LORD said to Moses, Write this for a memorial in a book, and rehearse 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 LORD-nissi. 16And he said, LORD has sworn, LORD will have war with Amalek from generation to generation.