Passage
Surely there is no man iust in the earth, that doeth good and sinneth not.
Surely there is no man iust in the earth, that doeth good and sinneth not.
Ecclesiastes 7:20 It is good that thou lay hold on this: but yet withdrawe not thine hand from that: for he that feareth God, shall come forth of them all.
Ecclesiastes 7:21 Wisedome shall strengthen the wise man more then ten mightie princes that are in ye citie.
Ecclesiastes 7:22 Surely there is no man iust in the earth, that doeth good and sinneth not.
Ecclesiastes 7:23 Giue not thine heart also to all ye wordes that men speake, lest thou doe heare thy seruant cursing thee.
Ecclesiastes 7:24 For often times also thine heart knoweth that thou likewise hast cursed others.
The verse centers on "surely", "iust", "earth", "doeth", "good", and "sinneth". It is saying that the verse draws attention to "surely" and "iust", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 21's "Wisedome shall strengthen the wise man more..." into verse 23's "Giue not thine heart also to all...", so "surely" and "iust" belong inside that flow. In Ecclesiastes context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "surely" and "iust" with trust shaped by these words, not by a vague optimism outside the passage.