When Balaam saw that the city had fallen into the hands of the besiegers, he exercised his magic arts, which enabled him to fly through the air, and he carried with him his two sons, Jannes and Jambres, and his eight brothers, and they all took refuge in Egypt.
Seeing that they had been saved by the king, and the city had been taken by his good counsel, the people became more than ever attached to him. They set the royal crown upon his head, and gave him Adoniah, the widow of Kikanos to wife. But Moses feared the stern God of his fathers, and he went not in unto Adoniah, nor did he turn his eyes toward her, for he remembered how Abraham had made his servant Eliezer swear, saying unto him, "Thou shalt not take a wife for my son of the daughters of the Canaanites, among whom I dwell." He also remembered what Isaac did when Jacob fled before his brother Esau, how he commanded his son, saying, "Thou shalt not take a wife from the daughters of Canaan, nor ally thyself by marriage with any of the children of Ham, for the Lord our God gave Ham the son of Noah and all his seed as slaves to the children of Shem and Japheth forever."