God's work is intriguing (2)
Although Joseph did not commit any sin,
God allowed him to be falsely accused by Potiphar's wife,
leading to his imprisonment (Gen. 39:1-20).
Then, 'after these things,' God caused Pharaoh's cupbearer and baker,
who had offended Pharaoh, to be imprisoned in the same jail
where Joseph was held (40:1-3).
Subsequently, God made these two officials have dreams
while they were in prison and enabled Joseph to interpret their dreams (vv. 5-13).
Eventually, through the cupbearer,
Joseph's ability to interpret dreams was brought to Pharaoh's attention (41:9-13),
and ultimately, God interpreted Pharaoh's dreams through Joseph (vv. 25-36),
leading to Joseph's deliverance through Pharaoh.