In a Hadith the Prophet,peace be upon him, says that a dead person is tortured by his relatives’ wailing for him. Ayesha rejects this Hadith saying that no one suffers as a result of the action of another. Please clarify.

What Ayesha said is correct. No one will ever bear responsibility for the action of another. This is divine justice summed up in short statement in the Qur’an, which is repeated several times. Since a dead person has no say in how his relatives conduct themselves after he has died; it is impossible that God would hold him responsible for them.

What the Hadith means is that the dead person will be informed by God of what his people do, and their excessive grief, or their wailing saddens him.

This is the sort of torment that the Hadith refers to. It is not a torment God inflicts on him as a result of their action. To suggest so is contrary to divine justice.