Exodus 17:10

Joshua did as Moses had spoken, and he fought against Amalek. But Moses and Aaron and Hur ascended to the top of the hill

Other versions

King James Version

So Joshua did as Moses had said to him, and fought with Amalek: and Moses, Aaron, and Hur went up to the top of the hill.

English Standard Version

So Joshua did as Moses told him, and fought with Amalek, while Moses, Aaron, and Hur went up to the top of the hill.

New International Version

So Joshua fought the Amalekites as Moses had ordered, and Moses, Aaron and Hur went to the top of the hill.