A man passed away and left behind his wife and 54,000 Riyals, which is the value of the compensation for a house he inherited from his mother. The only heir of this man is his wife, for he was barren. His wife wants to spend the mentioned sum in building a Masjid (mosque) as Waqf (endowment) for the sake of Allah on behalf of her husband, his mother and herself.
Is this action permissible?
If the reality is as you have mentioned, she may do so because it is an act of charity. (Part No. 16; Page No. 31) May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.