and delivered him out of all his afflictions. He gave Joseph favor and wisdom before Pharaoh, king of Egypt, so Pharaoh appointed him as ruler over Egypt and over all his household.