Arthur Schopenhauer said this quote

The greatest of follies is to sacrifice health for any other kind of happiness.