It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: The deceased is punished because of the weeping and wailing of his family and neighbors.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 6182