KJV: And when they were departed, behold, the angel of the Lord appeareth to Joseph in a dream, saying, Arise, and take the young child and his mother, and flee into Egypt, and be thou there until I bring thee word: for Herod will seek the young child to destroy him.
NASB: Now when they had gone, behold, an angel of the Lord appeared to Joseph in a dream and said, "Get up! Take the Child and His mother and flee to Egypt, and remain there until I tell you; for Herod is going to search for the Child to destroy Him."
KJV: And was there until the death of Herod: that it might be fulfilled which was spoken of the Lord by the prophet, saying, Out of Egypt have I called my son.
NASB: He remained there until the death of Herod. This was to fulfill what had been spoken by the Lord through the prophet: "OUT OF EGYPT I CALLED MY SON."
KJV: And delivered him out of all his afflictions, and gave him favour and wisdom in the sight of Pharaoh king of Egypt; and he made him governor over Egypt and all his house.
NASB: and rescued him from all his afflictions, and granted him favor and wisdom in the sight of Pharaoh, king of Egypt, and he made him governor over Egypt and all his household.