Joseph in prison interprets dreams
Falsely accused by Potiphar's wife, Joseph was imprisoned, where he interpreted the dreams of Pharaoh's cupbearer and baker.
Yahweh was with Joseph, and he was a prosperous man. He was in the house of his master the Egyptian.
Genesis 39:2 (World English Bible)
Joseph rose to run Potiphar's household, and then refused the advances of Potiphar's wife. Her false accusation landed him in prison, where he again rose to run things. When two of Pharaoh's officials had troubling dreams, Joseph said that interpretations belong to God, and events happened just as he said. The cupbearer promised to remember him, then forgot for two years.
Places
Dating notes
Two full years before Joseph stood before Pharaoh (Genesis 41:1). The start of his imprisonment isn't dated.