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.