Ecclesiastes 2:10

And whatsoever mine eyes desired I kept not from them, I withheld not my heart from any joy; for my heart rejoiced in all my labour: and this was my portion of all my labour.

Solomon had been favored above others in circumstances and character and life, and had been given wisdom by God, yet the pride of prosperity separated him from God. Turning from the joy of divine communion, he sought his highest good in earthly things, looking for satisfaction in sensual pleasure and in great works. The verse records that turning and that search.

It means he deliberately kept back nothing his eyes desired and withheld his heart from no joy. He rejoiced in all his labor, and this rejoicing was his portion of all his labor. He gave himself every pleasure he desired and found joy in his work.

That enjoyment gave no lasting satisfaction and no rest for the soul. When he considered what he had done, he judged his labor to bring no lasting profit. His life and the work he had done he found to be empty and vain and vexation of spirit, like one thirsting at broken cisterns in heathen worship and earthly pleasure.

In his later years, wearied and thirsting, he turned from those broken cisterns to drink at the fountain of life. By inspiration he recorded the history of those wasted years as a warning for after-generations. Although his people reaped the seed of his sowing in harvests of evil, the discipline of suffering accomplished its work in him, and his life-work was not wholly lost.