So Joshua did as Moses said, and fought the Amalekites, while Moses, Aaron and Hur went up to the top of the hill.