Ref. No. 1281
In the name of Allah the most Gracious the most Merciful
It is necessary to give zakat and other obligatory sadaqat into the ownership of the eligible recipients. Therefore, it is not allowed to spend such money (zakat & obligatory sadaqat) in building a mosque or toilets etc.
And Allah knows best
Darul Uloom Waqf Deoband