A known mosque in-dream also could represent the renowned scholars who live in that place, or the ruler of that country, or any of his ministers. If one enters-mosque and immediately after crossing the entrance gate, he prostrates himself to Allah Almighty in the dream, it means that he will be given the opportunity to repent for his sins. If one comes to-Masjid and finds its doors locked, then if someone opens the door to him in-dream, it means that he will help someone in paying his debt, then extol his good virtues in public.
More related Dreams in this M For Islamic Dreams interpretation Use search box and enter phrase (translation enabled in most languages )