It was narrated that Ibn 'Umar said; "The Messenger of Allah said: “The deceased is punished due to his family's weeping over him; Mention of that was made to 'Aishah and she said: “He is wrong; rather the Prophet passed by a grave and said: The occupant of this grave is being punished and his family are weeping for him." Then she recited: And no bearer of burdens shall bear another's burden””
SahihSahihSahih - Agreed UponBook 21 · Hadith 38