It strikes me that Ecclesiastes 7:1-4 would be a good text at a funeral sermon, but I have never heard it raised at one.
A good name is better than precious ointment, and the day of death than the day of birth. It is better to go to the house of mourning than to go to the house of feasting, for this is the end of all mankind, and the living will lay it to heart. Sorrow is better than laughter, for by sadness of face the heart is made glad. The heart of the wise is in the house of mourning, but the heart of fools is in the house of mirth.