Exodus 17:10-11
Exodus 17:10-11 NIV
So Joshua fought the Amalekites as Moses had ordered, and Moses, Aaron and Hur went to the top of the hill. As long as Moses held up his hands, the Israelites were winning, but whenever he lowered his hands, the Amalekites were winning.