Ecclesiastes 7:16

I also saw this, in the days of my vanity: a just man perishing in his justice, and an impious man living a long time in his malice

Other versions

King James Version

Be not righteous over much; neither make thyself over wise: why shouldest thou destroy thyself?

English Standard Version

Be not overly righteous, and do not make yourself too wise. Why should you destroy yourself?

New International Version

Do not be overrighteous, neither be overwise- why destroy yourself?