Acts 7:9-10
7:9 The patriarchs, because they were jealous of Joseph, sold him into Egypt. But God was with him,
7:10 and rescued him from all his troubles, and granted him favor and wisdom in the presence of Pharaoh, king of Egypt, who made him ruler over Egypt and over all his household.