Sirach (Ecclesiasticus) 30:21

Give not over thy mind to heaviness, and afflict not thyself in thine own counsel.

Brenton's English Septuagint