"The Lord was with Joseph so that he prospered, and he lived in the house of his Egyptian master. When his master saw that the Lord was with him and that the Lord gave him success in everything he did, Joseph found favor in his eyes and became his attendant. Potiphar put him in charge of his household, and he entrusted to his care everything he owned..." Genesis 39:2-4"Joseph’s master took him and put him in prison, the place where the king’s prisoners were confined. But while Joseph was there in the prison, the Lord was with him; he showed him kindness and granted him favor in the eyes of the prison warden. So the warden put Joseph in charge of all those held in the prison, and he was made responsible for all that was done there. " Genesis 39:20-22
In Potiphar's house, Joseph was just a regular slave and God favored him so much that he was placed in charge of everything Potiphar owned. When he got wrongly accused and thrown in prison, God still favored him so much that the Warden placed him in charge of the other prisoners. That is uncommon favor. It doesn't matter how bad the place or circumstance you're in is, when you are in the will of God, He will shower you with uncommon and unheard favor and place you in charge of your contemporaries. People you are supposed to be on the same level and same boat with, you are now placed above them.
God's favor is not limited to certain circumstances. It will find you in the pit like it did with Daniel so that the Lions did not harm him.
It will find you in the fire like it did Shadrach, Meshach, and Abednego, so that they did not get burned by the fire in the fiery furnace.
It found Joseph in the Slave Master's house and in Prison, and it will find you ANYWHERE you are and prosper you. It may be the will of God for you to be in that situation a little bit longer, but it doesn't mean you have to be miserable in there. "Arise, shine, for your light has come, and the glory of the LORD rises upon you." Isaiah 60:1