Exodus 17:10-11
Exodus 17:10-11 AMP
So Joshua did as Moses said, and fought with Amalek; and Moses, Aaron, and Hur went up to the hilltop. Now when Moses held up his hand, Israel prevailed, and when he lowered his hand [due to fatigue], Amalek prevailed.