Islamic Interpretation of Dreams (Ibn-i Sirin):
(Commander; Military) In a dream, an army general or a commander represents someone famous who is self assured and dauntless.
If one sees himself as an army general in a dream, and should he qualify for such a position, it means prosperity, honor and blessings.
If one does not qualify for such a position, then it may mean his death.
If a poor person sees himself as an army general in a dream, it means disturbances and that he will raise his voice.
As for a prisoner, it means his release from jail.