Riyad as-Salihin, Book 18, Hadith 1660 (In-Book)

Al-Mughirah bin Shu'bah (May Allah be pleased with him) said: I heard the Messenger of Allah saying, "He who allows (others) to wail over his death, will be punished for it on the Day of Resurrection."[Al-Bukhari and Muslim].

وعن المغيرة بن شعبة رضي الله عنه قال ‏:‏سمعت رسول الله صلى الله عليه وسلم يقول ‏ "‏من نِيح عليه، فإنه يُعذب بما نِيح عليه يوم القيامة‏" ‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏

sunnah.com