Deductions & credits

If the money is returned in 2021 and never repaid, then it is a deductible expense in 2021 as a refund.  But it is still taxable income for 2020. How you handle the re-payment and re-repayment or just hold onto it is between your wife and the client.