The author if Ecclesiastes believes it is better to go to the house of mourning than the house of feasting (7:2). Not that it is more enjoyable, but it causes us to face our own vulnerability. We need to remember that death will come to us like it has all those who have gone before us.
Considering our death causes us to make sure we are ready to meet God (7:1-4). King David requested of the Lord, “Teach us to number our days that we may present to you a heart of wisdom” (Psalm 90:12).
As we remember life passes quickly we are more apt to remember our decisions have a lifetime affect. Let's weigh them carefully.