Quoted word for word, in order of authority: the Church's councils, popes and catechisms first, then the Fathers, then later saints and Doctors, then Catholic commentators.
On the contrary, The wise man seeks only that which is useful. But according to Eccles. 7:5, "the heart of the wise is where there is mourning, and the heart of fools where there is mirth." Therefore sorrow is useful.
Summa Theologiae I-II, q. 39, a. 3: Whether sorrow can be a useful good? On the contrary (tr. Fathers of the English Dominican Province)
Catholic commentators
Fr. George Leo Haydock
Priest and commentator · 1774 to 1849
Explains this verse
Mourning. They submit willingly to correction, (S. Jer.) or think seriously on the dangers of sin and God's judgments.
Haydock Catholic Bible Commentary (1859), note on Ecclesiastes 7:5
To cite this page: The Summa, “Ecclesiastes 7:5”, https://thesumma.org/read/bible/ot/ecclesiastes/7/5. Every quotation names its source; where each text comes from is listed on Sources and corrections.