The whole Israelite community set out from the Desert of Sin,1 traveling from place to place as the LORD commanded. They camped at Rephidim,2 but there was no water3 for the people to drink.
So they quarreled with Moses and said, "Give us water4 to drink."5 Moses replied, "Why do you quarrel with me? Why do you put the LORD to the test?"63
But the people were thirsty7 for water there, and they grumbled8 against Moses. They said, "Why did you bring us up out of Egypt to make us and our children and livestock die9 of thirst?"
Then Moses cried out to the LORD, "What am I to do with these people? They are almost ready to stone10 me."
The 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 staff11 with which you struck the Nile,12 and go.
I will stand there before you by the rock at Horeb.13 Strike14 the rock, and water15 will come out of it for the people to drink." So Moses did this in the sight of the elders of Israel.
And he called the place Massaha16 and Meribahb17 because the Israelites quarreled and because they tested the LORD saying, "Is the LORD among us or not?"
The Amalekites18 came and attacked the Israelites at Rephidim.199
Moses said to Joshua,20 "Choose some of our men and go out to fight the Amalekites. Tomorrow I will stand on top of the hill with the staff21 of God in my hands."
So Joshua fought the Amalekites as Moses had ordered, and Moses, Aaron and Hur22 went to the top of the hill.
As long as Moses held up his hands, the Israelites were winning,23 but whenever he lowered his hands, the Amalekites were winning.
When Moses' hands grew tired, they took a stone and put it under him and he sat on it. Aaron and Hur held his hands up--one on one side, one on the other--so that his hands remained steady till sunset.2413
So Joshua overcame the Amalekite25 army with the sword.
Then the LORD said to Moses, "Write26 this on a scroll as something to be remembered and make sure that Joshua hears it, because I will completely blot out27 the name of Amalek28 from under heaven."
Moses built an altar29 and called30 it The LORD is my Banner.
He said, "Because hands were lifted up againstc the throne of the LORD,d the LORD will be at war against the Amalekites31 from generation to generation."32