Question
As-salamu alaykum wa rahmatullahi wa barakatuh
A prostitute built a mosque. Afterwards a Muslim bought this mosque from Jalal Masjid and endowed it for the sake of Allah. Is prayer in this mosque permissible or not, and does that mosque have the ruling of a mosque or not?
Answer
According to the ruling of the noble hadith:
“Indeed Allah is pure and accepts only that which is pure. And another hadith: his food is forbidden, his drink is forbidden, his clothing is forbidden, and he has been nourished with the forbidden, so how can his supplication be accepted? Both these hadiths are in Sahih Muslim. And according to the hadith of Abdullah ibn Umar: whoever buys a garment for ten dirhams, and one dirham of it is forbidden, Allah the Exalted will not accept his prayer as long as that garment is on him. Then Abdullah ibn Umar put his fingers into his ears and said: if I have not heard the Prophet ﷺ say this hadith, may these two ears become deaf. This hadith was narrated by Imam Ahmad (may Allah have mercy on him). 12 And according to the hadith: indeed Allah the Exalted does not accept the prayer of the one who lets his lower garment hang below the ankles. Abu Dawud narrated it.”
According to these aforementioned hadiths, prayer in the prostitute’s mosque is not permissible, because that wealth is impure and forbidden. And forbidden clothing is a cause for the prayer not being accepted. It is written in the Ikhtiyarat of Ibn Taymiyyah (may Allah have mercy on him) that prayer is not valid in usurped clothing, silk clothing, or a usurped house. This is when it is an obligatory prayer, and this is the more correct of the two narrations from Imam Ahmad (may Allah have mercy on him). And if it is a voluntary prayer, Amidi has said that one narration of Ahmad is not correct. And if someone bought that mosque with lawful wealth, then according to the noble verse “do not exchange the impure for the pure”, its prohibition will not go away. And from the hadith: “May Allah destroy the Jews and Christians, for indeed when Allah the Exalted forbade fats to them, they melted them, sold them, and ate their price”… it is established that the prohibition of forbidden things is not lifted by buying and selling. So the ruling on the mentioned mosque is the same as what has passed earlier.
However, according to Imam Abu Hanifa (may Allah have mercy on him), the mahr of a prostitute is lawful. Hasan Chalpi has written in Dhakhirat al-Uqba that the money a fornicatress fixes beforehand is lawful for her according to the Greatest Imam (may Allah have mercy on him), because compensation of the like kind is lawful even if the cause is forbidden. According to the two companions (Sahibayn), (this money) is forbidden, and if she does not fix it beforehand, it is forbidden by agreement. It is written likewise in al-Muhit. And according to the Hanafis, even forbidden wealth becomes pure if the buyer buys it in a permissible manner. It is written in al-Qunya: if the strongest presumption is that most of the transactions of the market people are not free of corruption, then if most of the transactions involve the forbidden, one should not buy them; but despite the forbidden nature of the situation, if he buys them anyway, that property will be lawful for him, provided the previous buyer’s sale was carried out in a permissible manner. End. But in my view, they have no evidence from the Quran and hadith. God knows where they obtained this concession from.