The parable of the rich fool?
That’s my pre-lookup guess - now I’ll go get the Bible.
Bingo.
By giving away one’s wealth after death to charity, isn’t the act depriving one’s progeny of the benefit, thus making the act a sacrifice?
Methinks it is prideful shallowness to look for faults in others’ acts of generosity.