and rescued him from all his troubles. He granted him favor and wisdom before Pharaoh, king of Egypt, who appointed him ruler of Egypt and of his whole household.