Acts 7:9-10

9And the patriarchs, ajealous of Joseph, bsold him into Egypt; but cGod was with him 10and rescued him out of all his afflictions and dgave him favor and wisdom before Pharaoh, king of Egypt, ewho made him ruler over Egypt and over all his household.
Copyright information for ESV