The whole community of the people of Isra'el left the Seen Desert, traveling in stages, as ADONAI had ordered, and camped at Refidim; but there was no water for the people to drink.
The people quarreled with Moshe, demanding, "Give us water to drink!" But Moshe replied, "Why pick a fight with me? Why are you testing ADONAI?"
However, the people were thirsty for water there and grumbled against Moshe, "For what did you bring us up from Egypt? To kill us, our children and our livestock with thirst?"
Moshe cried out to ADONAI, "What am I to do with these people? They're ready to stone me!"
ADONAI answered Moshe, "Go on ahead of the people, and bring with you the leaders of Isra'el. Take your staff in your hand, the one you used to strike the river; and go.
I will stand in front of you there on the rock in Horev. You are to strike the rock, and water will come out of it, so the people can drink." Moshe did this in the sight of the leaders of Isra'el.
The place was named Massah [testing] and M'rivah [quarreling] because of the quarreling of the people of Isra'el and because they tested ADONAI by asking, "Is ADONAI with us or not?"
Then 'Amalek came and fought with Isra'el at Refidim.
Moshe said to Y'hoshua, "Choose men for us, go out, and fight with 'Amalek. Tomorrow I will stand on top of the hill with God's staff in my hand."
Y'hoshua did as Moshe had told him and fought with 'Amalek. Then Moshe, Aharon and Hur went up to the top of the hill.
When Moshe raised his hand, Isra'el prevailed; but when he let it down, 'Amalek prevailed.
However, Moshe's hands grew heavy; so they took a stone and put it under him, and he sat on it. Aharon and Hur held up his hands, the one on the one side and the other on the other; so that his hands stayed steady until sunset.
Thus Y'hoshua defeated 'Amalek, putting their people to the sword.
ADONAI said to Moshe, "Write this in a book to be remembered, and tell it to Y'hoshua: I will completely blot out any memory of 'Amalek from under heaven."
Moshe built an altar, called it ADONAINissi [ADONAI is my banner/miracle],
and said, "Because their hand was against the throne of Yah, ADONAI will fight 'Amalek generation after generation."