The Pardoner's Prologue and Tale
So in the end the moral to this story is that, the gold was the Death that the old man said was beneath the tree and due to their greed and gluttony they all died with nothing.