Erchin 6:2-3
Erchin (Arachin) 6:2
If man commits his property to the Temple but he owes his wife the value of her kesubah or money to a creditor, neither his wife nor the creditor can collect their debt from the consecrated property. Rather, the one who redeems the property must do so in order to pay the wife or the creditor what they’re owed. If he dedicated 90 maneh of his property and he owed 100 maneh, then one must add an extra dinar (so that the Temple makes a token profit) and he redeems the property in order to pay the wife or the creditor.
Erchin (Arachin) 6:3
Even though they take collateral from those who owe valuations, they leave such people enough food for 30 days, enough clothing for 12 months, a bed with linens, shoes and tefillin; this is just for himself, not for his wife and children. If he was a craftsman, they leave two of each kind of tool that he uses. For example, they leave a carpenter two axes and two saws. Rabbi Eliezer says that if the one who owes is a farmer, they leave his yoke; if he’s a donkey driver, they leave his donkey.