The Wisdom of Jesus the Son of Sirach, or Ecclesiasticus

Chapter 30
1Death is better than a bitter life, and eternal rest than a continual sickness.