كتاب المغازى
64  
Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi)
(83)
Chapter: The sickness of the Prophet (saws) and his death
(83)
بَابُ مَرَضِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَوَفَاتِهِ
Sahih al-Bukhari 4433, 4434

Narrated `Aisha:

The Prophet (ﷺ) called Fatima during his fatal illness and told her something secretly and she wept. Then he called her again and told her something secretly, and she started laughing. When we asked her about that, she said, "The Prophet (ﷺ) first told me secretly that he would expire in that disease in which he died, so I wept; then he told me secretly that I would be the first of his family to follow him, so I laughed ( at that time).

حَدَّثَنَا يَسَرَةُ بْنُ صَفْوَانَ بْنِ جَمِيلٍ اللَّخْمِيُّ، حَدَّثَنَا إِبْرَاهِيمُ بْنُ سَعْدٍ، عَنْ أَبِيهِ، عَنْ عُرْوَةَ، عَنْ عَائِشَةَ ـ رضى الله عنها ـ قَالَتْ دَعَا النَّبِيُّ صلى الله عليه وسلم فَاطِمَةَ ـ عَلَيْهَا السَّلاَمُ ـ فِي شَكْوَاهُ الَّذِي قُبِضَ فِيهِ، فَسَارَّهَا بِشَىْءٍ، فَبَكَتْ، ثُمَّ دَعَاهَا فَسَارَّهَا بِشَىْءٍ فَضَحِكَتْ فَسَأَلْنَا عَنْ ذَلِكَ‏.‏ فَقَالَتْ سَارَّنِي النَّبِيُّ صلى الله عليه وسلم أَنَّهُ يُقْبَضُ فِي وَجَعِهِ الَّذِي تُوُفِّيَ فِيهِ فَبَكَيْتُ، ثُمَّ سَارَّنِي فَأَخْبَرَنِي أَنِّي أَوَّلُ أَهْلِهِ يَتْبَعُهُ فَضَحِكْتُ‏.‏
Reference : Sahih al-Bukhari 4433, 4434
In-book reference : Book 64, Hadith 455
USC-MSA web (English) reference : Vol. 5, Book 59, Hadith 718
  (deprecated numbering scheme)