1 The whole community of Israel started out from the Desert of Sin. They traveled from place to place, just as the Lord commanded. They camped at Rephidim. But there wasn't any water for the people to drink.
2 So they argued with Moses. They said, "Give us water to drink." Moses replied, "Why are you arguing with me? Why are you putting the Lord to the test?"
3 But the people were thirsty for water there. So they told Moses they weren't happy with him. They said, "Why did you bring us up out of Egypt? Did you want us, our children and our livestock to die of thirst?"
4 Then Moses cried out to the Lord. He said, "What am I going to do with these people? They are almost ready to kill me by throwing stones at me."
5 The Lord answered Moses. He said, "Walk on ahead of the people. Take some of the elders of Israel along with you. Take in your hand the wooden staff you used when you struck the Nile River. Go.
6 I will stand there in front of you by the rock at Mount Horeb. Hit the rock. Then water will come out of it for the people to drink." So Moses hit the rock in the sight of the elders of Israel.
7 Moses called the place Massah and Meribah. That's because the people of Israel argued with him there. They also put the Lord to the test. They asked, "Is the Lord among us or not?"
8 The Amalekites came and attacked the Israelites at Rephidim.
9 Moses said to Joshua, "Choose some of our men. Then go out and fight against the Amalekites. Tomorrow I will stand on top of the hill. I'll stand there with the staff of God in my hands."
10 So Joshua fought against the Amalekites, just as Moses had ordered. Moses, Aaron and Hur went to the top of the hill.
11 As long as Moses held his hands up, the Israelites were winning. But every time he lowered his hands, the Amalekites began to win.
12 When Moses' arms got tired, Aaron and Hur got a stone and put it under him. Then he sat on it. Aaron and Hur held his hands up. Aaron was on one side, and Hur was on the other. Moses' hands remained steady until sunset.
13 So Joshua destroyed the Amalekite army with swords.
14 Then the Lord said to Moses, "That is something to be remembered. So write it on a scroll. Make sure Joshua knows you have done it. I will completely erase the memory of the Amalekites from the earth."
15 Then Moses built an altar. He called it The Lord Is My Banner.