Joshua obeyed Moses and went to fight the Amalekites, while Moses, Aaron, and Hur went to the top of the hill.