אמר רב יהודה בריה דרב שמואל בר שילת משמיה דרב בקשו חכמים לגנוז ספר קהלת מפני שדבריו סותרין זה את זה ומפני מה לא גנזוהו מפני שתחילתו דברי תורה וסופו דברי תורה.
Since contradictions in Ecclesiastes were mentioned, the Gemara cites additional relevant sources. Rav Yehuda, son of Rav Shmuel bar Sheilat, said in the name of Rav: The Sages sought to suppress the book of Ecclesiastes and declare it apocryphal because its statements contradict each other and it is liable to confuse its readers. And why did they not suppress it? Because its beginning consists of matters of Torah and its end consists of matters of Torah.
אָמַר רַבִּי יוֹסֵי: מַעֲשֶׂה בְּאַבָּא חֲלַפְתָּא שֶׁהָלַךְ אֵצֶל רַבָּן גַּמְלִיאֵל בְּרִיבִּי לִטְבֶרְיָא, וּמְצָאוֹ שֶׁהָיָה יוֹשֵׁב עַל שֻׁלְחָנוֹ שֶׁל יוֹחָנָן הַנָּזוּף וּבְיָדוֹ סֵפֶר אִיּוֹב תַּרְגּוּם, וְהוּא קוֹרֵא בּוֹ. אָמַר לוֹ: זָכוּר אֲנִי בְּרַבָּן גַּמְלִיאֵל אֲבִי אָבִיךָ שֶׁהָיָה עוֹמֵד עַל גַּבֵּי מַעֲלָה בְּהַר הַבַּיִת, וְהֵבִיאוּ לְפָנָיו סֵפֶר אִיּוֹב תַּרְגּוּם, וְאָמַר לַבַּנַּאי: שַׁקְּעֵהוּ תַּחַת הַנִּדְבָּךְ. אַף הוּא צִוָּה עָלָיו וּגְנָזוֹ...
Rabbi Yosei said: There was an incident involving my father, Ḥalafta, who went to the esteemed Rabban Gamliel of Yavne in Tiberias, where he found him sitting at the table of Yoḥanan HaNazuf and in his hand there was a translation of the book of Job, and he was reading from it. Yoḥanan said to Rabban Gamliel of Yavne: I remember Rabban Gamliel, your father’s father, who was standing on top of a step on the Temple Mount. And they brought before him a translation of the book of Job, and he said to the builder: Bury this book under the course of bricks. When he heard of that incident, Rabban Gamliel of Yavne ordered that it be buried and he buried it...
אבות דרבי נתן (א) א:ד
בראשונה היו אומרים משלי ושיר השירים וקהלת גנוזים היו, שהם היו אומרים משלות ואינן מן הכתובים, ועמדו וגנזו אותם.
Avot d'Rebbe Natan (A) 1:4
At first they said: Mishlei, Song of Songs and Kohelet were suppressed, as they said - they are parables and not from the Writings, and they stood and suppressed them.
מַה יִּתְרוֹן לָאָדָם, אָמַר רַבִּי בִּנְיָמִין בִּקְשׁוּ חֲכָמִים לִגְנֹז סֵפֶר קֹהֶלֶת מִפְּנֵי שֶׁמָּצְאוּ בוֹ דְּבָרִים מָטִין לְצַד מִינוּת...
What real value is there for a man (In all the gains he makes beneath the sun?), Rabbi Binyamin said: The Sages sought to suppress the Book of Kohelet because they found within it matters that tilt towards heresy...
What are the three reasons given for why the ancient Rabbis might have excluded certain books from the תנ"ך?
אמר ליה רב לרב המנונא בני אם יש לך היטב לך שאין בשאול תענוג ואין למות התמהמה ואם תאמר אניח לבני חוק בשאול מי יגיד לך בני האדם דומים לעשבי השדה הללו נוצצין והללו נובלין
Similarly, Rav said to Rav Hamnuna: My son, if you have money, do well for yourself. There is no point waiting, as there is no pleasure in the netherworld, and death does not tarry. And if you say: I will save up in order to leave for my children, who told you the law of the netherworld, i.e., how do you know which of you will die first? People are similar to grass of the field, in that these blossom, and these wither and die.
...כָּל כִּתְבֵי הַקֹּדֶשׁ מְטַמְּאִין אֶת הַיָּדַיִם. שִׁיר הַשִּׁירִים וְקֹהֶלֶת מְטַמְּאִין אֶת הַיָּדַיִם. רַבִּי יְהוּדָה אוֹמֵר, שִׁיר הַשִּׁירִים מְטַמֵּא אֶת הַיָּדַיִם, וְקֹהֶלֶת מַחֲלֹקֶת. רַבִּי יוֹסֵי אוֹמֵר, קֹהֶלֶת אֵינוֹ מְטַמֵּא אֶת הַיָּדַיִם וְשִׁיר הַשִּׁירִים מַחֲלֹקֶת. רַבִּי שִׁמְעוֹן אוֹמֵר, קֹהֶלֶת מִקֻּלֵּי בֵית שַׁמַּאי וּמֵחֻמְרֵי בֵית הִלֵּל...
...All the Holy Scriptures defile the hands. The Song of Songs and Kohelet (Ecclesiastes) defile the hands. Rabbi Judah says: the Song of Songs defiles the hands, but there is a dispute about Kohelet. Rabbi Yose says: Kohelet does not defile the hands, but there is a dispute about the Song of Songs. Rabbi Shimon says: [the ruling about] Kohelet is one of the leniencies of Bet Shammai and one of the stringencies of Bet Hillel...
ר"ש בן מנסיא אומר שיר השירים מטמאה את הידים מפני שנאמרה ברוח הקדש. וקהלת אינה מטמאה את הידים שאינה אלא מחכמתו של שלמה.
Rabbi Shimon ben Menasia says: Shir HaShirim defiles the hands because it was composed with the Holy Spirit. Kohelet does not defile the hands because it is only Shlomo's wisdom.
מאי טעמא גזרו ביה רבנן טומאה אמר רב משרשיא שבתחלה היו מצניעין את אוכלין דתרומה אצל ספר תורה ואמרו האי קדש והאי קדש כיון דקחזו דקאתו לידי פסידא גזרו ביה רבנן טומאה.
And a Torah scroll; what is the reason the Sages decreed impurity upon it? Rav Mesharshiya said: Since at first, ignorant priests would conceal teruma foods alongside the Torah scroll, and they said in explaining that method of storage: This is sacred and that is sacred, and it is appropriate that they be stored together. Since the Sages saw that they were coming to ruin, as the mice who were attracted to the teruma foods would also gnaw at the Torah scrolls, the Sages decreed impurity upon it.
Imagine that you are on the beit din (Rabbinical court) which is set to decide what will be included in the Tanakh and what will be excluded. Based on what we have learned, and anything else you know about Tanakh, we will be debating which book(s) should be excluded from among the following list:
a) Shir HaShirim (Song of Songs)
b) Esther
c) Kohelet (Ecclesiastes)
d) Other
