Al-Ilmam bi-Ahadith al-Ahkam 464
عَن أنس رَضِيَ اللَّهُ عَنْه، قَالَ: " شَهِدنَا ابْنة رَسُول الله ﷺ ، وَرَسُول الله ﷺ جَالس عَلَى الْقَبْر، فرأيتُ عَيْنَيْهِ تدمعان، فَقَالَ: هَل مِنْكُم من أحد لم يقارف اللَّيْلَة؟ فَقَالَ أَبُو طَلْحَة: أَنا؛ قَالَ: فَانْزِل فِي قبرها، فَنزل فِي قبرها ". أخرجه البُخَارِيّ.
From Anas, may Allah be pleased with him, who said: "We attended [the burial of] a daughter of the Messenger of Allah ﷺ, and the Messenger of Allah ﷺ was sitting by the grave. I saw his eyes shedding tears. He said: 'Is there anyone among you who did not have intercourse last night?' Abu Talhah said: 'I.' He said: 'Then go down into her grave.' So he went down into her grave." Al-Bukhari recorded it.