عن عمر بن الخطاب رضي الله عنه قال‏:‏ قال النبي صلى الله عليه وسلم ‏:‏‏"‏الميت يُعذب في قبره بما نِيح عليه ‏"‏‏. وَفِي روايةٍ:"مَا نِيحَ علَيْهِ"‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏
Translation
Umm 'Atiyyah (May Allah be pleased with her) said

At the time of giving the pledge of allegiance, the Messenger of Allah (ﷺ) took from us an oath that we would not wail.[Al-Bukhari and Muslim].