Sorry about your personal loss. The settlement is tax free to you because it is compensation for personal physical injury. However, if any part of the settlement is for punitive damages, those are taxable.
Payments made to a separated or divorced spouse as required by a decree or agreement. Qualifying payments are deductible by the payor and taxable to the payee.