Exodus 17
1And all the congregation of the children of Israel journeyed from the wilderness of Sin, after their journeyings, by the order of the Lord; and they encamped in Rephidim, and there was no water for the people to drink.
2And the people quarrelled with Moses, and said, Give us water that we may drink; and Moses said unto them, Why will ye quarrel with me? why will ye tempt the Lord?
4And Moses cried unto the Lord, saying, What shall I do unto this people? but little is wanting and they will stone me.
8Then came Amalek, and fought with Israel in Rephidim.
10And Joshua did as Moses had said to him, to fight with Amalek; and Moses, Aaron, and Chur went up to the top of the hill.
11And it came to pass, when Moses held up his hand, that Israel prevailed: and when he let down his hand, that Amalek prevailed.
12But when the hands of Moses became heavy, they took a stone, and put it under him, and he sat thereon; and Aaron and Chur supported his hands, one on one side, and the other on the other side; and his hands were steady until the going down of the sun.
13And Joshua discomfited Amalek and his people with the edge of the sword.
16And he said, Because the Lord hath sworn on his throne, that the Lord will have war with Amalek from generation to generation.