In the 18th century BCE a Semitic people called the Hyksos flowed into the Delta and ruled Egypt during much of the Second Intermediate Period (1782-1570 BCE). They were finally driven out by Amose I. This was the birth of Egypt's 'New Kingdom'. Among the groups driven back into the Levant were a Bedu like group known as the Shasu.
Who could have guessed that these lowly Shasu would find themselves in the highlands of the Levant, comingled with the West Semitic (Canaanite) followers of El, and forming what would later be called Israel?
The 'Land of the Shasu' in the mountainous districts of Se'ir east of the Araba [the valley south of the Dead Sea] has an interesting consequence for one name in the mentioned lists from Soleb [northern Sudan] and Amarah [south of Cairo] -- 'Yhw (in) the land of the Shasu.' For half a century it has been generally admitted that we have here the tetragrammaton, the name of the Israelite god, 'Yahweh'; and if this be the case, as it undoubtedly is, the passage constitutes a most precious indication of the whereabouts during the late fifteenth century B.C. of an enclave revering this god.
And while it would be wrong to jump to the conclusion that 'Israel' as known from the period of the Judges or the early monarchy was already in existence in Edom at this time, one cannot help but recall the numerous passages in later Biblical tradition that depict Yahweh 'coming froth from Se'ir' and originating in Edom. The only reasonably conclusion is that one major component in the later amalgam that constituted Israel, and the one with whom the worship of Yahweh originated, must be looked for among the Shasu of Edom already at the end of the fifteenth century B.C.
- Egypt, Canaan and Israel in Ancient Times, by Donald B. Redford
In sum, therefore, we may state that the memory of the Hyksos expulsion did indeed live on in the folklore of the Canaanite population of the southern Levant. The exact details were understandably blurred and subconsciously modified over time, for the purpose of 'face-saving.' It became not a conquest but a peaceful descent of a group with pastoral associations who rapidly arrived at a position of political control. Their departure came not as a result of an ignominious defeat, but either voluntarily or as a flight from a feud, or yet again as salvation from bondage.
- ibid