King James Version (KJV)
I know that there is no good in them, but to rejoice, and to do good in his life.
Modern English
I perceived that there is nothing better for them than to be joyful and to do good as long as they live.
Hebrew
יָדַ֕עְתִּי כִּ֛י אֵ֥ין טוֹב֖ בָּם כִּ֣י אִם לִשְׂמ֔וֹחַ וְלַעֲשׂ֥וֹת טוֹב֖ בְּחַיָּֽיו׃
yadaʿtiy kiy ʾeyn ṭvob bam kiy ʾim lishmvoḥa vlaʿasvot ṭvob bḥayayv