and delivered him out of all his tribulations, and gave him favor and wisdom before Pharaoh king of Egypt, and he set him—governor over Egypt and all his house.