Ecclesiastes 7:5

The heart of the wise is a place of mourning, and the heart of the foolish is a place of rejoicing

Other versions

King James Version

It is better to hear the rebuke of the wise, than for a man to hear the song of fools.

English Standard Version

It is better for a man to hear the rebuke of the wise than to hear the song of fools.

New International Version

It is better to heed a wise man's rebuke than to listen to the song of fools.