Sahih Muslim, Book 11, Hadith 21 (Muslim 2121)

Umar reported Allah's Apostle (ﷺ) as saying:

The dead is punished in the grave because of wailing on it.