2. Why we should have this in our eye, in the management of ourselves as to this world, and look up to God for it. (1.) Because Solomon himself, with all his possessions, could aim at no more and desire no better (v. 25): "Who can hasten to this more than I? This is that which I was ambitious of: I wished for no more; and those that have but little, in comparison with what I have, may attain to this, to be content with what they have and enjoy the good of it." Yet Solomon could not obtain it by his own wisdom, without the special grace of God, and therefore directs us to expect it from the hand of God and pray to him for it. (2.) Because riches are a blessing or a curse to a man according as he has or has not a heart to make good use of them. [1.] God makes them a reward to a good man, if with them he give him wisdom, and knowledge, and joy, to enjoy them cheerfully himself and to communicate them charitably to others. To those who are good in God's sight, who are of a good spirit, honest and sincere, pay a deference to their God and have a tender concern for all mankind, God will give wisdom and knowledge in this world, and joy with the righteous in the world to come; so the Chaldee. Or he will give that wisdom and knowledge in things natural, moral, political, and divine, which will be a constant joy and pleasure to them. [2.] He makes them a punishment to a bad man if he denies him a heart to take the comfort of them, for they do but tantalize him and tyrannize over him: To the sinner God gives by travail, by leaving him to himself and his own foolish counsels, to gather and to heap up that, which, as to himself, will not only burden him like thick clay (Hab. ii. 6), but be a witness against him and eat his flesh as it were fire (Jam. v. 3); while God designs, by an overruling providence, to give it to him that is good before him; for the wealth of the sinner is laid up for the just, and gathered for him that will pity the poor. Note, First, Godliness, with contentment, is great gain; and those only have true joy that are good in God's sight, and that have it from him and in him. Secondly, Ungodliness is commonly punished with discontent and an insatiable covetousness, which are sins that are their own punishment. Thirdly, When God gives abundance to wicked men it is with design to force them to a resignation in favour of his own children, when they are of age and ready for it, as the Canaanites kept possession of the good land till the time appointed for Israel's entering upon it. [3.] The burden of the song is still the same: This is also vanity and vexation of spirit. It is vanity, at the best, even to the good man; when he has all that the sinner has scraped together it will not make him happy without something else; but it is vexation of spirit to the sinner to see what he had laid up enjoyed by him that is good in God's sight, and therefore evil in his. So that, take it which way you will, the conclusion is firm, All is vanity and vexation of spirit.