Spending the compensation for knocking down the Waqf in the same way specified by the donor

Q: My late father (may Allah be merciful to him) bought a shop on the main street in the district of Banu Tamim. However, this shop was demolished by the municipal authorities and we received 16,850 riyals as compensation, which is insufficient to buy another shop. We do not know what to do with this sum of money? We ask Your Eminence to tell us what to do in this regard. How should we handle this money. Is it permissible for us to (Part No. 16; Page No. 109) use this money to build water closets for the mosques? Is it permissible to use this money for building a Masjid (mosque), taking into consideration that one of the citizens asked us to give him the sum to build a Masjid, but only the Imam and the Mu'adhin (caller to Prayer) offer Salah (Prayer) in it? Kindly give us your Fatwa in this regard. May Allah reward you the best.

A: You should try hard to use this amount of money in a property or to share the ownership of it in your district or elsewhere. You should use its revenue for the purposes intended by your father. This could be done with the help of the judge of the district in which you want to buy a property. May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.