Joshua did as Moses commanded him and went out to fight the Amalekites, while Moses, Aaron, and Hur went up to the top of the hill.