וַיָּבֹ֖א עֲמָלֵ֑ק וַיִּלָּ֥חֶם עִם־יִשְׂרָאֵ֖ל בִּרְפִידִֽם׃
Lalu datanglah Amalek dan memerangi Israel di Rafidim.
Rashi
ויבא עמלק THEN CAME AMALEK — Scripture places this section immediately after this preceding verse (they said, “Is the Lord among us or not?”) to imply, “I am ever among you and ready at hand for every thing you may need, and yet you say, “Is the Lord among us or not?” By your lives, I swear that the hound (Amalek) shall come and bite you, and you will cry for Me and then you will know where I am!” A parable: it may be compared to a man who carried his son upon his shoulder, and went out on a journey. The son saw an article and said, “Father, pick up that thing and give it to me”. He gave it to him, and so a second time and so also a third time. They met a certain man to whom the son said, “Have you seen my father anywhere?” Whereupon his father said to him, “Don’t you know where I am?” — He, therefore, cast him off from himself and a hound came and bit him (Midrash Tanchuma, Yitro 3).
Chizkuni
ויבא עמלק, “Amalek came;” where did Amalek come from? Our verse must be understood in terms of what we have been told in Genesis 36,6, where Esau and all his clans are reported as having moved away from the land of Canaan, after the reconciliation which included Esau’s ceding the claim to the land of Canaan to his brother Yaakov’s descendants. At that time Rashi explained that Esau, aware of the promise and curse G-d had made toAvraham at the covenant between the pieces in Genesis chapter 15, the promise of taking over the land of Canaan had been made conditional on Abraham’s descendants having been strangers and part of that time even slaves, for 400 years. Esau decided then to forego the promise in order to escape the curse of the 400 year wait. His descendants, one of whom was his grandson Amalek, realised that the 400 years had elapsed and that by now the only thing that was left was the promise. He therefore decided that as the older son of Yitzock’s descendant, to stake his claim by force. He was also aware that his grandfather had been motivated to leave the land of Canaan as he had looked like a great fool for having sold his birthright, which had given Yaakov, as the firstborn, a claim to the land of Canaan. [He believed the time was ripe then, especially while the Israelites were in no man’s land, land that they had no claim to, would not enjoy preferential treatment by G-d in such an encounter.]
Da'at Zekenim
ויבוא עמלק, Amalek came;” it is difficult to understand why Amalek, if he was keen on attacking the Israelites, had waited until after they had been so miraculously saved from the Egyptians. He would have had a much easier target when the seventy people making up Yaakov’s family were on their way to Egypt. The answer may be that when G–d said to Avraham (Genesis 15,13) ועבדום וענו אותם, “they will serve them and they (their masters) will abuse them,” that as soon as Avraham would die this prophecy would be come applicable to Yitzchok and upon Yitzchok’s death it would devolve on Yaakov and his children. Amalek may have reasoned that if he were to wipe out Yaakov and family, this curse would devolve upon him. He therefore waited until the 400 years were up according to his calculation, before attacking the descendants of Avraham.