Sirach 30:21

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

Sirach 30:21 In-Context

19 What good doeth the offering unto an idol? for neither can it eat nor smell: so is he that is persecuted of the Lord.
20 He seeth with his eyes and groaneth, as an eunuch that embraceth a virgin and sigheth.
21 Give not over thy mind to heaviness, and afflict not thyself in thine own counsel.
22 The gladness of the heart is the life of man, and the joyfulness of a man prolongeth his days.
23 Love thine own soul, and comfort thy heart, remove sorrow far from thee: for sorrow hath killed many, and there is no profit therein.

The Brenton translation of the Septuagint is in the public domain.