Potiphar's wife continually begged Joseph to sleep with her--day by day (39:6b-10). But Joseph's response reflected his devotion to the Lord, "How then can I do this great wickedness, and sin against God?" And even though he was walking his days faithful, Potiphar's wife betrayed him out of her rejected anger and accused him of attempted rape. He was then thrown into prison.
What would your response have been? "Why, God, why? What have I done to deserve this? Why me?" whine, whine, whine. Or would your response have been one reflecting trust in the sovereign God, reigning on high? The Lord had a plan--and it included imprisonment.
Our ways are not God's ways. He is so very high above us, yet He graciously reveals Himself to us (in very minuscule doses). And even though prison was included in Joseph's journey, the hope is found in verse 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." Are you with me?
THE LORD WAS WITH HIM SHOWING HIM MERCY. And the Lord will be with us, as well.
I don't know where you are on your own adventure with Him. Maybe you find yourself in great adversity, with God's purpose being your breaking in order to bring beauty. Or maybe you are in adversity while you were seemingly walking faithful. Either way, God's will is for our good and for His glory. Rest in this place. Trust Him, friend. He has not forgotten you.