Joseph was brought to Egypt, Potiphar an officer of pharaoh, bought him. because God was with Joseph, he was a prosperous man, and was in the house of his master the Egyptian. Joseph's master saw that God was with him, and made him overseer of his house. Because of Joseph God blessed Egyptian's house, but Egyptian's wife misbehaved with Joseph, but Joseph escaped from the hands of his master's wife. Joseph don't want to commit sin against God, but his master's wife sent him to jail. because of God is with Joseph, the keeper of the prison he is very much favorable to Joseph, the keeper of the prison handed over all the prisoners for the control of Joseph, because of God is with Joseph, the keeper of the prison did not look anything that was under Joseph's hand.
" When God is with us the place of living will not make difference and God bless the people who are with us also. "
~Genesis Chapter 39