Death is not the worst evil, but rather when we wish to die and cannot.

Sophocles (496-406 BC) Greek tragic playwright
Electra, l. 1007

Alt. trans.: "For death is not the worst, but when one wants to die and is not able even to have that."