Is the one who lives in the masjid with his wife allowed to have sexual relations with her in the masjid?
A consensus has been relayed regarding the prohibition of sexual relations in the masjid; a consensus of the people of knowledge. So it is not allowed for anyone to have sexual relations in the masjid. It is impermissible by consensus of the people of knowledge, and likeso the verse:
وَأَنتُمْ عَٰكِفُونَ فِى ٱلْمَسَٰجِد
And whilst you are doing i’tikaaf in the masjid.
This is an indication, that it is not permissible for a person to have sexual relations in the masjid, even if he is in a room of the masjid that’s walls are within the boundaries of masjid – it is impermissible.
As for if it is from the inside and the door is from the outside this requires looking into.
However, if the walls of the room are within the boundaries of the wall of the masjid and the door is also within the boundaries then it is not permissible for a person to indulge in sexual relations in it, it is considered part of the masjid, and it is incumbent for the masjid to be venerated and raised.
فِى بُيُوتٍ أَذِنَ ٱللَّهُ أَن تُرْفَعَ وَيُذْكَرَ فِيهَا ٱسْمُهُۥ يُسَبِّحُ لَهُۥ فِيهَا بِٱلْغُدُوِّ وَٱلْءَاصَالِ
In the houses (of Allah) which Allah has ordered to be raised and that His name be mentioned therein
Raised from sexual intercourse and other than that from these matters. So it is not allowed for a person to indulge in sexual relations in the masjid, it is impermissible for him that he has sexual relations with his wife in the masjid.
He should go and look to any of his brothers that have houses to ask permission for something of that nature, as for utilizing his stay in the masjid by indulging in sexual relations in the masjid; it is not allowed in the masjid, a consensus has been relayed concerning that. Whether it be the men or women’s masjid, or a place which has been designated for the women, this is not befitting.
Answered by: Shaykh Abu Bilaal Al-Hadhramy – may Allah preserve him
Answered on: 10th Rabbi’ Al-Awal 1441( 7th November 2019)
Translated by: Abu ‘Abdillah ‘Omar ibn Yahya Al-‘Akawi