After this, the Amalekites came and attacked the Israelites at Rephidim.
8. Then came Amalek. These were the first enemies whom God arrayed against Israel, after having delivered them from Egypt, and having kept them for some time in peace and quietness. It was principally for two reasons that He chose them now to be involved in war, either to punish them for their recent sin, or as a correction of their idleness, lest it should...
We have here the story of the war with Amalek, which, we may suppose, was the first that was recorded in the book of the wars of the Lord, Num 21:14. Amalek was the first of the nations that Israel fought with, Num 24:20. Observe, I. Amalek's attempt: They came out, and fought with Israel, Exo 17:8.
Commenting on Exodus 17:8-16
Then came Amalek,.... The Amalekites, who were not the posterity of Amalek, a son of Eliphaz, the son of Esau, by Timna the concubine of Eliphaz, Gen 36:12 who dwelt in the desert, to the south of Judea, beyond the city Petra, as you go to Aila, as Jerom says (t); and so the Targum of Jonathan describes them as coming from the south; and...