Question
Can the hide from sacrifice or zakat be used for repairing a mosque or constructing a well for the mosque?
Answer
The hide from sacrifice is purely the right of the poor and needy; no one else has a share in it. However, regarding zakat, there is an opinion that it is permissible to spend it on the mosque, but those responsible for the mosque should not use the mosque as an excuse to spend zakat money; they should spend from their own resources.
Reference: (Fatawa Thanaiya Volume 1, p. 472)