and rescued him from all his troubles, and granted him favor and wisdom in the presence of Pharaoh, king of Egypt, who made 1 him ruler over Egypt and over all his household.