The Song of Songs defiles the hands because it was composed with divine inspiration. Kohelet does not defile the hands because it is only Solomon's wisdom.
(Tosefta Yadaim)
(2) Utter futility!—said Koheleth—
Utter futility! All is futile!
(3) What real value is there for a man
In all the gains he makes beneath the sun?
R. Benjamin b. Levi stated: The Sages wanted to hide the Book of Ecclesiastes, for they found in it ideas that leaned toward heresy. They argued: Was it right that Solomon should have said the following: O youth, enjoy yourself while you are young! Let your heart lead you to enjoyment in the days of your youth (Ecc. 11:9)? Moshe said, So that you do not follow your heart and eyes (Num. 15:39), but Solomon said, Follow the desires of your heart and the glances of your eyes (Ecc. 11:9)! What then? Is all restraint to be removed? Is there neither justice nor judge? When, however, he said, But know well that God will call you to account for all such things (Ecc. 11:9), they admitted that Solomon had spoken well. (Lev. Rabbah 28:1; cf. Ecc. Rabbah 1:3)
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. The ostensibly contradictory details are secondary to the essence of the book, which is Torah. The Gemara elaborates: Its beginning consists of matters of Torah, as it is written: “What profit has man of all his labor which he labors under the sun?” (Ecclesiastes 1:3), and the Sages of the school of Rabbi Yannai said: By inference: Under the sun is where man has no profit from his labor; however, before the sun, i.e., when engaged in the study of Torah, which preceded the sun, he does have profit. Its ending consists of matters of Torah, as it is written: “The end of the matter, all having been heard: Fear God, and keep His mitzvot; for this is the whole man” (Ecclesiastes 12:13). With regard to this verse, the Gemara asks: What is the meaning of the phrase: For this is the whole man? Rabbi Eliezer said: The entire world was only created for this person. Rabbi Abba bar Kahana said: This person is equivalent to the entire world. Shimon ben Azzai says and some say that Shimon ben Zoma says: The entire world was only created as companion to this man, so that he will not be alone. And to the essence of the matter, the Gemara asks: What is the meaning of: Its statements that contradict each other? It is written: “Vexation is better than laughter” (Ecclesiastes 7:3), and it is written: “I said of laughter: It is praiseworthy” (Ecclesiastes 2:2), which is understood to mean that laughter is commendable. Likewise in one verse it is written: “So I commended mirth” (Ecclesiastes 8:15), and in another verse it is written: “And of mirth: What does it accomplish?” (Ecclesiastes 2:2). The Gemara answers: This is not difficult, as the contradiction can be resolved. Vexation is better than laughter means: The vexation of the Holy One, Blessed be He, toward the righteous in this world is preferable to the laughter which the Holy One, Blessed be He, laughs with the wicked in this world by showering them with goodness. I said of laughter: It is praiseworthy, that is the laughter which the Holy One, Blessed be He, laughs with the righteous in the World-to-Come. Similarly, “So I commended mirth,” that is the joy of a mitzva. “And of mirth: What does it accomplish?” that is joy that is not the joy of a mitzva. The praise of joy mentioned here is to teach you that the Divine Presence rests upon an individual neither from an atmosphere of sadness, nor from an atmosphere of laziness, nor from an atmosphere of laughter, nor from an atmosphere of frivolity, nor from an atmosphere of idle conversation, nor from an atmosphere of idle chatter, but rather from an atmosphere imbued with the joy of a mitzva. ... And, the Gemara continues, the Sages sought to suppress the book of Proverbs as well because its statements contradict each other. And why did they not suppress it? They said: In the case of the book of Ecclesiastes, didn’t we analyze it and find an explanation that its statements were not contradictory? Here too, let us analyze it.
קהל
קהילה
הקהל
קהל
קהילה
הקהל
מקהילה
קהל
קהילה
הקהל
הדרן עלך אין עומדין
As Rabbi Abbahu said: In the place where penitents stand, even the full-fledged righteous do not stand, as it is stated: “Peace, peace upon him who is far and him who is near.” Peace and greeting is extended first to him who is far, the penitent, and only thereafter is peace extended to him who is near, the full-fledged righteous. And Rabbi Yoḥanan could have said to you: What is the meaning of him who is far? This refers to the full-fledged righteous who was distant from an act of transgression from the outset, and to whom peace is extended first. What is meant by him who is near? This refers to the penitent who was close to an act of transgression but has now distanced himself from it, and to whom peace is extended only after it has been extended to him who has been righteous from the outset.
Rabbi Menachem Mendel of Kotzk
And here is another frustration: (11) the fact that the sentence imposed for evil deeds is not executed swiftly, which is why men are emboldened to do evil—
The fool folds his hands together
And has to eat his own flesh. (6) [But no less truly,]
Better is a handful of gratification
Than two fistfuls of labor which is pursuit of wind.
(Rabbi Avraham Ibn Ezra on Kohelet 7:3)
Michael V. Fox A Time to Tear Down and a Time to Build Up
Seem to me all the uses of the world.
(Hamlet)