Joseph was one of Jacob's 12 sons. His father loved him more than any of the others and gave him a coloured cloak. His brothers were jealous of him and sold him into slavery. He was taken to Egypt and eventually became steward to Potiphar, one of Pharaoh's officials. Genesis 37–50 (ESV)
THE LORD WAS WITH JOSEPH
The Lord was with Joseph. This preposition shows proximity or association God calls His people to be in fellowship with Him. It is used frequently to show the promises of God towards us, or to affirm that God is with us, or our petitions to God to be with us. Everywhere God meets us He places on us a moral demand.
MARY AND JOSEPH - RESPONSE TO THE REVELATION OF GOD
Joseph needed to know that Mary was truly carrying the Son of God, and he needed to know what part he would play in God's amazing plan.