All the Israelites traveled together from the desert of Zin. They traveled from place to place as the Lord commanded. The people traveled to Rephidim and camped there. There was no water there 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?"
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.
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."
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.
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."