Vision: If you dream you are in prison: if you are married, it means you are dissatisfied. You feel locked up in your relationship or removed from real life. Visiting someone in prison means either a very bad conscience or deep regret over past actions.
If you are released from prison: a new phase in your life is beginning. Seeing a prison: somebody is offering you something “uninviting.*
Depth Psychology: Dreams about prison are usually a sign of fear about an emotionally intense relationship. Maybe your personal growth is hindered and you want to do something about it quickly (like “breaking out”)! If you are the one imprisoned, it might be an indication that you have guilt feelings—justified or not.
[1]