King James Version (KJV)
And I gave my heart to know wisdom, and to know madness and folly: I perceived that this also is vexation of spirit.
Modern English
And I applied my heart to know wisdom and to know madness and folly. I perceived that this also is but a striving after wind.
Hebrew
וָאֶתְּנָ֣ה לִבִּ֔י לָדַ֖עַת חָכְמָ֑ה וְדַ֙עַת֙ הוֹלֵל֣וֹת וְשִׂכְל֔וּת יָדַ֕עְתִּי שֶׁגַּם זֶ֖ה ה֥וּא רַעְי֖וֹן רֽוּחַ׃
vaʾetnah libiy ladaʿat ḥakmah vdaʿat hvolelvot vshiklvt yadaʿtiy shegam zeh hvʾ raʿyvon rvḥa