The last two verses of the book of Ecclesiastes gives the conclusion of the whole matter of the book. King Solomon speaks in the book about everything that he experienced (and that others may experience as well) and comes to the conclusion that there is a time for all things and that we can even enjoy our provisions, but at the end of the day it is all vanity without God.