I will prove thee with mirth - This is well expressed by the author so often referred to. Having tried speculative knowledge in vain, passion and appetite whisper: -
"From the rugged thorny road
Of wisdom, which so ill repays thy toil,
Turn back, and enter pleasure's flowery paths.
Go, take thy fill of joy, to passion give
The reins; nor let one serious thought restrain
What youth and affluence prompt."
Solomon‘s trial of God‘s second gift, namely, riches, and the enjoyment which riches supply; this brought him to the sane result (compare Ecclesiastes 1:12).
Comparing Solomon‘s action with Luke 12:16-21, it must be remembered that Solomon‘s object was the acquisition of wisdom, not self-indulgence, and that he did not fail to look forward to the certainty of death overtaking him.