“Wisdom with an inheritance.” Both wisdom and money are a defense against some of the troubles of life, as the next verse, Ecclesiastes 7:12, says. But money can go away, while wisdom provides much more reliable security.
“those who see the sun.” A poetic way of saying “those who are still alive.” This would especially apply to those in the family because an inheritance was usually passed in the family.