Righteous And Vanity in the WEB
2 verses of the World English Bible have both "righteous" and "vanity".
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.
Ecclesiastes 8:14 There is a vanity which is done on the earth, that there are righteous men to whom it happens according to the work of the wicked. Again, there are wicked men to whom it happens according to the work of the righteous. I said that this also is vanity.