Abdullah bin Ubaydullah bin Abu Mulayka reported,

A daughter of Uthman رضي الله عنه passed away in Mecca, and we came to attend her funeral. Ibn Umar and Ibn Abbas رضي الله عنهم were present. I was sitting between them, or rather I had sat next to one of them when the other came and sat beside me.Abdullah bin Umar رضي الله عنهم said to Amr bin Uthman, "Will you not forbid the weeping? For the Messenger of Allah ﷺ said, 'The deceased is tormented by the weeping of his family over him.'"

Bukhari 1286

Sahih

حدثنا عبدان حدثنا عبد الله أخبرنا ابن جريج قال أخبرني

عبد الله بن عبيد الله بن أبي مليكة قال

توفيت ابنة لعثمان رضي الله عنه بمكة وجئنا لنشهدها وحضرها ابن عمر وابن عباس رضي الله عنهم وإني لجالس بينهما أو قال جلست إلى أحدهما ثم جاء الآخر فجلس إلى جنبي فقال عبد الله بن عمر رضي الله عنهما لعمرو بن عثمان ألا تنهى عن البكاء فإن رسول الله ﷺ قال إن الميت ليعذب ببكاء أهله عليه

البخاري 1286صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Funerals
Chapter
Prophet's ﷺ saying, "The deceased is punished by some of the weeping of his family over him" if wailing was his practice
Numbering
Darussalam 1286
Bukhari 1286