This quote is speaking of a person who has died and is being buried. Everyone attending the burial is feeling sad and sorrowful at the passing of this person, but they also have a hopeful and thankful attitude because they believe in the afterlife and the immortality of the soul. They are hopeful the person will be remembered forever and they are thankful they knew this person while they were alive.