Exodus 17:9-10

9So Moses said to aJoshua, “Choose for us men, and go out and fight with Amalek. Tomorrow I will stand on the top of the hill with bthe staff of God in my hand.” 10So cJoshua did as Moses told him, and fought with Amalek, while Moses, Aaron, and dHur went up to the top of the hill.
Copyright information for ESV