Ecclesiastes 7:15
All this I have seen in my days of vanity: there is a righteous man who perishes in his righteousness, and there is a wicked man who lives long in his evildoing.
World English Bible (Public Domain)
In context
Before · Ecclesiastes 7:13–14
13Consider the work of God, for who can make that straight which he has made crooked? 14In the day of prosperity be joyful, and in the day of adversity consider; yes, God has made the one side by side with the other, to the end that man should not find out anything after him.
15All this I have seen in my days of vanity: there is a righteous man who perishes in his righteousness, and there is a wicked man who lives long in his evildoing.