Sirach (Ecclesiasticus) 30:17

Death is better than a bitter life or continual sickness.

Brenton's English Septuagint