Q.The individual is asking about a masjid which is in Morocco. Individuals who are practising in Morocco, they claim that this masjid is not permissible to pray in because the wealth is not pure, as some wealth which has been used to build the masjid is forbidden. What is the ruling on prayer in this masjid?
A. The shaykh mentioned, prayer in a masjid which the wealth used to build the
masjid was not purely halaal, prayer in the masjid is allowed. Prayer in this sort of masjid is allowed and the sin for using wealth that was not permissible falls upon the individual who spent, but the sin doesn’t fall upon the individuals who pray in the masjid. So it is permissible to pray there and the prayer is correct.
The shaykh says for example it’s not permissible for a person to steal some land and place a masjid there, that person the sin is upon him. But if individuals come and pray in that masjid, their prayer is accepted.
With regards to this specific masjid that’s mentioned in the question. If its
referring to the masjid which is present in the capital (of Morocco) then there is something greater in terms of prohibition for this masjid. That is… the shaykh said I entered this masjid in 1385 A.H. (we are in 1434 A.H.) and this was when the masjid was almost complete. The individuals who were taking me on the tour they showed me the place where they were going to place a grave in the masjid. So the fact that there is a grave in the masjid, this is something which is tremendous and because of that you would have a prohibition of praying at that masjid. But the other affair of other masaajid not being graves and the likes of that, but you find out that impermissible wealth is spent to build these masjids, its permissible for you to pray there and the prayer is accepted. The sin falls upon the person who spent the
Impermissible wealth to build the masjid.
Shaykh Saalih ibn Muhammad al-Luhaydaan (May Allaah preserve him). Kitaab at-Tawheed Class 01.12.12 Riyadh