Exodus 17:10-11
Exodus 17:10-11 ESV
So Joshua did as Moses told him, and fought with Amalek, while Moses, Aaron, and Hur went up to the top of the hill. Whenever Moses held up his hand, Israel prevailed, and whenever he lowered his hand, Amalek prevailed.