The Lord was with Joseph in the prison - Genesis 39:21
Joseph lived an upright life but endured more than his share of injustice at a young age
Through everything Joseph continued to serve GOd and those in authority over him
Joseph conduced himself in a way to earn himself respect and administration of everyone who knew him
How did he maintain a faithful heart when at times it must have seemed God had abandoned him? The Lord was with Joseph
Since Joseph knew God was with him, he prospered in every situation he faced including false imprisionment
Joseph remained steadfast in his commitment to God and He would reveal his hand in due time