Balaam spoke, saying: "Remember now, O my lord and king, the dream which thou didst dream many days ago, and how thy servant interpreted it unto thee. Now this is a child of the Hebrews in whom is the spirit of God. Let not my lord the king imagine in his heart that being a child he did the thing without knowledge. For he is a Hebrew boy, and wisdom and understanding are with him, although he is yet a child, and with wisdom has he done this, and chosen unto himself the kingdom of Egypt. For this is the manner of all the Hebrews, to deceive kings and their magnates, to do all things cunningly in order to make the kings of the earth and their men to stumble.
Balaam Reminded the King of a Terrifying Old Dream
Legends of the Jews 4:71