To dream that you are in prison indicates that you are being censored in some area of your life. You feel that your creativity is being limited and that you are not allowed to express yourself.
To see someone else in prison in your dream signifies an aspect of yourself that you are unable to express freely.
To dream that you or someone is released from prison means that you need to make some major changes in your waking life. Eventually, you will overcome your obstacles