Ecclesiastes 2:18 Talmud References

וְשָׂנֵ֤אתִֽי אֲנִי֙ אֶת־כָּל־עֲמָלִ֔י שֶׁאֲנִ֥י עָמֵ֖ל תַּ֣חַת הַשָּׁ֑מֶשׁ שֶׁ֣אַנִּיחֶ֔נּוּ לָאָדָ֖ם שֶׁיִּהְיֶ֥ה אַחֲרָֽי׃

And I hated all my labour wherein I laboured under the sun, seeing that I must leave it unto the man that shall be after me.

Find Talmudic references to Ecclesiastes 2:18: , passages from the Talmud Bavli and Yerushalmi.