1 Corinthians 7:12–16: Desertion and Divorce
First Corinthians 7:12–16 speaks to a believer married to an unbeliever who is content to stay, and to desertion by an unbelieving spouse. It gives no procedure for divorcing someone in prison, so the deciding question is who is leaving and whether the unbeliever is willing to remain.
Genesis 40:8: Do Dreams Come From God?
Joseph stands in prison before two sad officials and points away from himself: the reading of a dream belongs to God. That answers part of our question and leaves the rest with God's freedom.