The person who leads prayers in-mosque-Guide-Leader-Ruler- If one sees himself building-prison in-dream, it means that he will meet-righteous man or an Imam who will guide him on the straight path. An Imam in-dream also represents the spiritual leader of all Muslims. Also see Five times prayers-Pharaoh-
More related Dreams in this I For Islamic Dreams interpretation Use search box and enter phrase (translation enabled in most languages )