Why does it say "Yadati"?
Rashi: Since man's day of death is hidden from him [like we learn from verse 11, I know?]
Seforno: I recognized.
Metzudas David: I understood the ways of the world and its benefits.
What is the meaning of "Ein Tov Bam Ki Im?"?
Rav Sadya Gaon: The only good person is one who?
Rashi: The only good for man is to?.
Rashbam: "Ein Tov ba'Adam she'Yochal v'Yishteh" (2:24). Ibn Ezra - his only good is what he eats and drinks. This refers to one who engages day and night to amass money (2:21). Perhaps (unknowingly) he guards the rest for someone to whom Hashem will want to give it (2:26). This was repeated here, due to the times mentioned. There are times for everything - to wax rich or poor. One cannot add to or detract from [Hashem's will].
Ri Kara: Of all these times, his only gain is for the brief time that he has pleasure in his lifetime.
Seforno: There is no good in all his toil.
Metzudas David: The only good and happy person is one who rejoices and does good?
In what should he rejoice?
Rashi: In his portion.
Ibn Ezra: In his portion or wealth.
Seforno: In investigation. He will find intellectual and spiritual Simchah, which is greater than all physical Simchah.
What Tov should he do?
Rashi: What is good in Hashem's eyes.
Ibn Ezra #1: He should live a good life.
Ibn Ezra #2: He should do good in his lifetime, in order to receive good reward in his death.
Seforno: Good deeds, in order to resemble his Creator.
Metzudas David: Chesed and Tzedakah.