Dreaming that you are in trouble indicates that you will be full of courage and confidence in life.
Dreaming that others are in trouble indicates that they will get help in times of danger.
The prisoner's dream of encountering difficulties indicates that he is about to be released from prison.