10Joshua did as Moses had instructed him and fought against the Amalekites, while Moses, Aaron, and Hur went up to the top of the hill.
11As long as Moses held up his hands, Israel prevailed; but when he lowered them, Amalek prevailed.
12When Moses’ hands grew heavy, they took a stone and put it under him, and he sat on it. Then Aaron and Hur held his hands up, one on each side, so that his hands remained steady until the sun went down.
— Exodus 17:10-12