What followsWhat happens afterward?
أَهْلُهُ — familyReturn after the burial
مَالُهُ — wealthRemains in this world
عَمَلُهُ — deedsTheir consequences and accountability endure
The narration does not condemn family or property. Supporting family and earning lawfully may themselves be righteous deeds. Its point is that worldly attachments do not automatically constitute provision for the Hereafter unless they are connected to good actions.
The pronoun هُ in مَعَهُ and عَمَلُهُ refers to the deceased.