Ecclesiastes 12:14

"For God will bring every deed into judgment, including every hidden thing, whether it is good or evil." NIV translation

Solomon concludes with the reason that we serve God. We know that He is good and so everything that we do in service to Him must be good as well. On the last day, we will be judged on whether we had accepted the payment for our sins through Jesus Christ. If we have, then our service to Him (the good) will be rewarded.

Those that did not accept Him will have to pay the price for their own sins. That is the judgment of the "evil". 

In reminding us of this, Solomon is urging us to live our earthly lives with eternity in mind.

Ecclesiastes Chapter Twelve Study Quiz