Out of jealousy the patriarchs sold Joseph into Egypt; but God was with him, rescuing him from all his troubles and allowing him to find favour for his wisdom with Pharaoh king of Egypt, who appointed him viceroy over Egypt and over all his own household.