A wife wants to endow (waqf) all of her wealth in order to deprive her husband and family of inheritance
If the aim is that you want to make an immediate endowment (waqf najiz, from cash and wealth that is present) during your lifetime, that it be for charitable purposes, and that it not be with the intention of depriving the heirs, then there is no objection to it. But if the intention is to make the endowment after death, then it is permissible only within the limit of one third or less, and for a non-heir.
Reference: Al-Lajnah al-Da’imah: 19553