Can a cash settlement of a retirement beneficiary lawsuit be used as a deduction?

My ex-wife named me as sole beneficiary of her retirement account.  When she passed, her heirs sued me for the account.  We settled on my giving them a cash settlement of about half the nominal value.  Can this be used as a deduction?