 Moses notices that when his arms are raised the Israelites gained the upper hand, but when they are down the Amalekites prevail.He sits with his hands held up by Aaron and Hur until sunset, securing the Israelite victory.In the Book of Numbers a similar event is described as taking place near Kadesh.