Moses, Aaron and Hur climb up on the mountain to find an overlook where they can view the battle of Joshua and his mighty men and the army of Amalec below in the valley.
10 So Joshua did as Moses told him, and fought with Amalek, while Moses, Aaron, and Hur went up to the top of the hill.
Exodus 17
9 So Moses said to Joshua, “Choose for us men, and go out and fight with Amalek. Tomorrow I will stand on the top of the hill with the staff of God in my hand.”10 So Joshua did as Moses told him, and fought with Amalek, while Moses, Aaron, and Hur went up to the top of the hill.11 Whenever Moses held up his hand, Israel prevailed, and whenever he lowered his hand, Amalek prevailed.