The Messenger of Allah ﷺ said, "The deceased is punished due to his family's weeping over him."This was mentioned to Ayesha, and she said, "He was mistaken. The Prophet ﷺ merely passed by a grave and said, 'The occupant of this grave is being punished while his family weeps over him.'"Then she recited, "And no bearer of burdens shall bear the burden of another" [Anam 6:164].
أخبرنا محمد بن آدم عن عبدة عن هشام عن أبيه
قال رسول الله ﷺ إن الميت ليعذب ببكاء أهله عليه فذكر ذلك لعائشة فقالت وهل إنما مر النبي ﷺ على قبر فقال إن صاحب القبر ليعذب وإن أهله يبكون عليه ثم قرأت {ولا تزر وازرة وزر أخرى}
Sourced from Bukhari, Book of Military Expeditions, Chapter on the Killing of Abu Jahl, no. 3978, and Muslim, Book of Funerals, Chapter on the Deceased Being Punished for the Weeping of His Family over Him, no. 931, from the hadith of Hisham bin Urwa with this wording. It is also found in Kubra, no. 1982.