King James Version (KJV)
In the day of prosperity be joyful, but in the day of adversity consider: God also hath set the one over against the other, to the end that man should find nothing after him.
Modern English
In the day of prosperity be joyful, and in the day of adversity consider: God has made the one as well as the other, so that man may not find out anything that will be after him.
Hebrew
בְּי֤וֹם טוֹבָה֙ הֱיֵ֣ה בְטוֹב֔ וּבְי֥וֹם רָעָ֖ה רְאֵ֑ה גַּ֣ם אֶת זֶ֤ה לְעֻמַּת זֶה֙ עָשָׂ֣ה הָאֱלֹהִ֔ים עַל דִּבְרַת֙ שֶׁלֹּ֣א יִמְצָ֣א הָאָדָ֔ם אַחֲרָ֖יו מְאֽוּמָה׃
byvom ṭvobah heyeh bṭvob vbyvom raʿah rʾeh gam ʾet zeh lʿumat zeh ʿashah haʾelohiym ʿal dibrat sheloʾ yimṣaʾ haʾadam ʾaḥarayv mʾvmah