Answer
(Fatwa: 2203/1796=B/1429)
Mosque is a holy and sacred place; it should be constructed with halal and pure money. We are prohibited to use haram money in building a mosque. It is mentioned in Hadith that Allah is pure and He likes purity. Therefore, constructing mosque with gambling money is not allowed as per the Shariah:
عن أبي ھریرۃ قال: قال رسول اللہ صلی اللہ علیہ وسلم: من تصدق بعدل تمرۃ من کسب طیب ولا یقبل اللہ إلا الطیب (مشكاة 167, باب فضل الصدقۃ)
Allah (Subhana Wa Ta’ala) knows Best
Darul Ifta,
Darul Uloom Deoband