Anas bin Malik reported,

We attended the funeral of one of the Messenger of Allah's ﷺ daughters. The Messenger of Allah ﷺ was sitting beside the grave, and I saw his eyes filling with tears.He asked, "Is there a man among you who did not have intercourse last night?"Abu Talha said, "I did not."The Prophet ﷺ said, "Then go down."So Abu Talha descended into her grave.

Azami 3584

Sahih

عن أنس بن مالك قال

شهدنا بنتا لرسول الله ﷺ، قال: ورسول الله ﷺ جالس على القبر، قال: فرأيت عينيه تدمعان، قال: فقال: هل منكم رجل لم يقارف الليلة؟ فقال أبو طلحة: أنا، قال: فانزل، قال: فنزل في قبرها.

الأعظمي 3584صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Prohibition of wailing over the deceased, and permissibility of weeping and showing grief over him
Section
Permissibility of weeping over the deceased and showing grief for them
Numbering
Jami al-Kamil 3584 (2nd edition)
Azami 3584