To dream of a mosque represents a state of mind where you extra cautious about not doing anything wrong. You may feel the need to go out of your way to make sure some area of your life is completely in order. You may also be seeking reassurance, or feel insecure about your conduct.
A mosque in a dream reflects a strong effort to be moral, faithful, dedicated, or responsible. It may also reflect a need to be seen by others in a positive light.