Throughout the book of Ecclesiastes, mankind is divided very sharply into the wise and the foolish, and in the way Solomon uses these terms both here and in Proverbs, the wise are always those with moral and spiritual wisdom, men and women who know God and who obey him, and the foolish are those who may be intellectually very astute but who reject the gospel. The rebuke of the wise must therefore be understood as a correction that reflects the truth, while the song of fools is a call to a lifestyle of unbelief.
Unless you are ready for the gospel to expose your sin, to hear this message which condemns you, and to come under conviction of sin, you can never come to know the truth. The first word of the gospel is repent. This is not what the world will tell you. In choosing who you will listen to, you choose which road you will walk: the road that leads to life, or the road that leads to everlasting destruction. You must become a seeker after God, and that means rejecting the message of the world, and the inclinations of the flesh. The seeker must have a preference for truth over flattery, even to the extent that he would prefer to receive an honest rebuke than a dishonest piece of praise.
The true preacher of the gospel has a very instructive message and this is who Solomon is urging us to listen to. He does not just oppose one or two details of our lives but is ready to uproot the foundations of our lives and if we are wise, we will listen to him. A radical work is required in our souls and it will not take place unless we are willing to let it take place. The awakened soul therefore begins to seek out the company of a very different kind of friend, one who is willing to tell him the truth about himself and will not spare the rod; one who knows the way to life. This has become more important to the seeker than all the superficial and empty words that the world speaks.