Genesis 41:38 And Pharaoh said to his servants, "Can we find such a one as this, a man in whom is the Spirit of God?" 39 Then Pharaoh said to Joseph, "Inasmuch as God has shown you all this, there is no one as discerning and wise as you. 40 "You shall be over my house, and all my people shall be ruled according to your word; only in regard to the throne will I be greater than you." 41 And Pharaoh said to Joseph, "See, I have set you over all the land of Egypt." 42 Then Pharaoh took his signet ring off his hand and put it on Joseph's hand; and he clothed him in garments of fine linen and put a gold chain around his neck.
43 And he had him ride in the second chariot which he had; and they cried out before him, "Bow the knee!" So he set him over all the land of Egypt. 44 Pharaoh also said to Joseph, "I am Pharaoh, and without your consent no man may lift his hand or foot in all the land of Egypt." 45 And Pharaoh called Joseph's name Zaphnath-Paaneah. And he gave him as a wife Asenath, the daughter of Poti-Pherah priest of On. So Joseph went out over all the land of Egypt.
One of the first challenges Joseph had to overcome was not allowing his father’s favoritism ruin him.
Genesis 37:3 Now Israel loved Joseph more than all his children, because he was the son of his old age. Also he made him a tunic of many colors. 4 But when his brothers saw that their father loved him more than all his brothers, they hated him and could not speak peaceably to him. 5 Now Joseph had a dream, and he told it to his brothers; and they hated him even more. 6 So he said to them, "Please hear this dream which I have dreamed: 7 "There we were, binding sheaves in the field. Then behold, my sheaf arose and also stood upright; and indeed your sheaves stood all around and bowed down to my sheaf."
8 And his brothers said to him, "Shall you indeed reign over us? Or shall you indeed have dominion over us?" So they hated him even more for his dreams and for his words. 9 Then he dreamed still another dream and told it to his brothers, and said, "Look, I have dreamed another dream. And this time, the sun, the moon, and the eleven stars bowed down to me." 10 So he told it to his father and his brothers; and his father rebuked him and said to him, "What is this dream that you have dreamed? Shall your mother and I and your brothers indeed come to bow down to the earth before you?" 11 And his brothers envied him, but his father kept the matter in mind.
Being sold into slavery and betrayed by his brothers did not break his faith in God.
Genesis 39:1 Now Joseph had been taken down to Egypt. And Potiphar, an officer of Pharaoh, captain of the guard, an Egyptian, bought him from the Ishmaelites who had taken him down there. 2 The LORD was with Joseph, and he was a successful man; and he was in the house of his master the Egyptian. 3 And his master saw that the LORD was with him and that the LORD made all he did to prosper in his hand. 4 So Joseph found favor in his sight, and served him. Then he made him overseer of his house, and all that he had he put under his authority. 5 So it was, from the time that he had made him overseer of his house and all that he had, that the LORD blessed the Egyptian's house for Joseph's sake; and the blessing of the LORD was on all that he had in the house and in the field. 6 ¶ Thus he left all that he had in Joseph's hand, and he did not know what he had except for the bread which he ate.
Psalm 23:4 Yea, though I walk through the valley of the shadow of death, I will fear no evil; For You are with me; Your rod and Your staff, they comfort me.
Philippians 4:11 … for I have learned in whatever state I am, to be content: 12 I know how to be abased, and I know how to abound. Everywhere and in all things I have learned both to be full and to be hungry, both to abound and to suffer need. 13 I can do all things through Christ who strengthens me.
Genesis 39:6 … Now Joseph was handsome in form and appearance. 7 And it came to pass after these things that his master's wife cast longing eyes on Joseph, and she said, "Lie with me." 8 But he refused and said to his master's wife, "Look, my master does not know what is with me in the house, and he has committed all that he has to my hand. 9 "There is no one greater in this house than I, nor has he kept back anything from me but you, because you are his wife. How then can I do this great wickedness, and sin against God?" 10 So it was, as she spoke to Joseph day by day, that he did not heed her, to lie with her or to be with her. 11 But it happened about this time, when Joseph went into the house to do his work, and none of the men of the house was inside, 12 that she caught him by his garment, saying, "Lie with me." But he left his garment in her hand, and fled and ran outside.
1 Peter 3:15 But sanctify the Lord God in your hearts, and always be ready to give a defense to everyone who asks you a reason for the hope that is in you, with meekness and fear; 16 having a good conscience, that when they defame you as evildoers, those who revile your good conduct in Christ may be ashamed. 17 For it is better, if it is the will of God, to suffer for doing good than for doing evil.
Genesis 39:20 Then Joseph's master took him and put him into the prison, a place where the king's prisoners were confined. And he was there in the prison. 21 But the LORD was with Joseph and showed him mercy, and He gave him favor in the sight of the keeper of the prison. 22 And the keeper of the prison committed to Joseph's hand all the prisoners who were in the prison; whatever they did there, it was his doing. 23 The keeper of the prison did not look into anything that was under Joseph's authority, because the LORD was with him; and whatever he did, the LORD made it prosper.
The last thing we are going to learn about Joseph this morning is how he attributed everything in his life to the providence of God.
Genesis 45:4 And Joseph said to his brothers, "Please come near to me." So they came near. Then he said: "I am Joseph your brother, whom you sold into Egypt. 5 "But now, do not therefore be grieved or angry with yourselves because you sold me here; for God sent me before you to preserve life. 6 "For these two years the famine has been in the land, and there are still five years in which there will be neither plowing nor harvesting. 7 "And God sent me before you to preserve a posterity for you in the earth, and to save your lives by a great deliverance. 8 "So now it was not you who sent me here, but God; and He has made me a father to Pharaoh, and lord of all his house, and a ruler throughout all the land of Egypt.
9 "Hurry and go up to my father, and say to him, 'Thus says your son Joseph: "God has made me lord of all Egypt; come down to me, do not tarry. 10 "You shall dwell in the land of Goshen, and you shall be near to me, you and your children, your children's children, your flocks and your herds, and all that you have. 11 "There I will provide for you, lest you and your household, and all that you have, come to poverty; for there are still five years of famine." ' 12 "And behold, your eyes and the eyes of my brother Benjamin see that it is my mouth that speaks to you. 13 "So you shall tell my father of all my glory in Egypt, and of all that you have seen; and you shall hurry and bring my father down here." 14 Then he fell on his brother Benjamin's neck and wept, and Benjamin wept on his neck. 15 Moreover he kissed all his brothers and wept over them, and after that his brothers talked with him.
Genesis 50:15 When Joseph's brothers saw that their father was dead, they said, "Perhaps Joseph will hate us, and may actually repay us for all the evil which we did to him." 16 So they sent messengers to Joseph, saying, "Before your father died he commanded, saying, 17 'Thus you shall say to Joseph: "I beg you, please forgive the trespass of your brothers and their sin; for they did evil to you." ' Now, please, forgive the trespass of the servants of the God of your father." And Joseph wept when they spoke to him. 18 Then his brothers also went and fell down before his face, and they said, "Behold, we are your servants." 19 Joseph said to them, "Do not be afraid, for am I in the place of God? 20 "But as for you, you meant evil against me; but God meant it for good, in order to bring it about as it is this day, to save many people alive. 21 "Now therefore, do not be afraid; I will provide for you and your little ones." And he comforted them and spoke kindly to them.
Romans 8:28 And we know that all things work together for good to those who love God, to those who are the called according to His purpose.