Exodus.
Chapter 17.
The Israelites left the western Sinai desert. They traveled all together from place to place as the LORD commanded. They camped at Rephidim, but there was no water for the people to drink. 
So they turned against Moses and started arguing with him. They said, “Give us water to drink.” Moses said to them, “Why have you turned against me? Why are you testing the LORD?” 
But the people were very thirsty, so they continued complaining to Moses. They said, “Why did you bring us out of Egypt? Did you bring us out here so that we, our children, and our cattle will all die without water?” 
So Moses cried to the LORD, “What can I do with these people? They are ready to kill me.” 
The LORD said to Moses, “Go before the Israelites. Take some of the elders of the people with you. Carry your walking stick with you. This is the stick that you used when you hit the Nile River. 
I will stand before you on a rock at Horeb. Hit that rock with the walking stick and water will come out of it. Then the people can drink.” Moses did these things and the elders of Israel saw it. 
Moses named that place Meribah and Massah, because this was the place that the Israelites turned against him and tested the LORD. The people wanted to know if the LORD was with them or not. 
At Rephidim the Amalekites came and fought against the Israelites. 
So Moses said to Joshua, “Choose some men and go and fight the Amalekites tomorrow. I will stand on the top of the hill and watch you. I will be holding the walking stick God gave me.” 
Joshua obeyed Moses and went to fight the Amalekites the next day. At the same time Moses, Aaron, and Hur went to the top of the hill. 
Any time Moses held his hands in the air, the men of Israel would start winning the fight. But when Moses put his hands down, the men of Israel began to lose the fight. 
After some time, Moses’ arms became tired. So they put a large rock under Moses for him to sit on. Then Aaron and Hur held Moses’ hands in the air. Aaron was on one side of Moses and Hur was on the other side. They held his hands up like this until the sun went down. 
So Joshua and his men defeated the Amalekites in this battle. 
Then the LORD said to Moses, “Write about this battle. Write these things in a book so that people will remember what happened here. And be sure to tell Joshua that I will completely destroy the Amalekites from the earth.” 
Then Moses built an altar and named it, “The LORD is My Flag.” 
Moses said, “I lifted my hands toward the LORD’S throne. So the LORD fought against the Amalekites, as he always has.” 
