KJV: All things have I seen in the days of my vanity: there is a just man that perisheth in his righteousness, and there is a wickedman that prolongeth his life in his wickedness.
NASB: I have seen everything during my lifetime of futility; there is a righteous man who perishes in his righteousness and there is a wicked man who prolongs his life in his wickedness.
KJV: And so I saw the wicked buried, who had come and gone from the place of the holy, and they were forgotten in the city where they had so done: this is also vanity.
NASB: So then, I have seen the wicked buried, those who used to go in and out from the holy place, and they are soon forgotten in the city where they did thus. This too is futility.
KJV: There is a vanity which is done upon the earth; that there be just men, unto whom it happeneth according to the work of the wicked; again, there be wicked men, to whom it happeneth according to the work of the righteous: I said that this also is vanity.
NASB: There is futility which is done on the earth, that is, there are righteous men to whom it happens according to the deeds of the wicked. On the other hand, there are evil men to whom it happens according to the deeds of the righteous. I say that this too is futility.