The person who leads prayers in a mosque; Guide; Leader; Ruler) If one sees himself building a prison in a dream, it means that he will meet a righteous man or an Imam who will guide him on the straight path.
An Imam in a dream also represents the spiritual leader of all Muslims.
(Also see Five times prayers; Pharaoh)... imam dream meaning
At times, the Ka’bah also stands for peace and harmony. Therefore, if the Ka’bah is seen in a place other than Makkah, it suggests that the people of that town or village will enjoy peace and harmony.... seeing the ka’bah in any place other than in makkah dream meaning