We were (in the funeral procession) of one of the daughters of the Prophet (ﷺ) and he was…

Sahih al-Bukhari Book 23 Hadith 46

Sahih al-Bukhari #1285

Funerals (Al-Janaa'iz) 23:46

Narrated Anas bin Malik:

We were (in the funeral procession) of one of the daughters of the Prophet (ﷺ) and he was sitting by the side of the grave. I saw his eyes shedding tears. He said, "Is there anyone among you who did not have sexual relations with his wife last night?" Abu Talha replied in the affirmative. And so the Prophet told him to get down in the grave. And so he got down in her grave.

Chapter: The deceased is punished because of the weeping of his relatives

Grade: Sahih