and rescued him from all his afflictions, and agranted him favor and wisdom in the sight of Pharaoh, king of Egypt, and he made him governor over Egypt and all his household.