The Amalekites Defeated

8 The Amalekites came and attacked the Israelites at Rephidim.
References for Exodus 17:8
9 Moses said to Joshua, “Choose some of our men and go out to fight the Amalekites. Tomorrow I will stand on top of the hill with the staff of God in my hands.”
10 So Joshua fought the Amalekites as Moses had ordered, and Moses, Aaron and Hur went to the top of the hill.
References for Exodus 17:10
11 As long as Moses held up his hands, the Israelites were winning, but whenever he lowered his hands, the Amalekites were winning.
References for Exodus 17:11
12 When Moses’ hands grew tired, they took a stone and put it under him and he sat on it. Aaron and Hur held his hands up—one on one side, one on the other—so that his hands remained steady till sunset.
References for Exodus 17:12
13 So Joshua overcame the Amalekite army with the sword.
References for Exodus 17:13
      14 Then the LORD said to Moses, “Write this on a scroll as something to be remembered and make sure that Joshua hears it, because I will completely blot out the name of Amalek from under heaven.”
      15 Moses built an altar and called it The LORD is my Banner.
      References for Exodus 17:15
      16 He said, “Because hands were lifted up againsta the throne of the LORD,b the LORD will be at war against the Amalekites from generation to generation.”
      References for Exodus 17:16
        • ˆ 17:16 - Or "to"
        • ‰ 17:16 - The meaning of the Hebrew for this clause is uncertain.