Question
Is it permissible or not to build a mosque on top of a mosque, that is, a two-storey mosque?
Answer
Building a mosque with two (2) levels is permissible in the Shariah, that is, there is no Shariah objection to building a second mosque on top of a mosque. Such mosques are very common in the lands of India and Arabia.
(Written by Abd al-Jabbar ibn Abd Allah al-Ghaznawi, may Allah pardon them both
Reference: (Fatawa Ghaznawiyyah, p. 19)