Ayesha reported,

During the illness in which he passed away, the Prophet ﷺ called Fatimah رضي الله عنها and whispered something to her, and she wept. Then he called her again and whispered something else to her, and she laughed. We asked her about that, and she said, "The Prophet ﷺ whispered to me that he would die from the illness he was suffering, so I wept. Then he whispered to me and informed me that I would be the first of his family to follow him, so I laughed."

Azami 9314

Sahih

عن عائشة قالت

دعا النبي ﷺ فاطمة رضي الله عنها في شكواه الذي قبض فيه، فسارها بشيء فبكت ثم دعاها فسارها بشيء فضحكت، فسألنا عن ذلك، فقالت: سارني النبي ﷺ أنه يقبض في وجعه الذي توفي فيه فبكيت، ثم سارني فأخبرني أني أول أهله يتبعه فضحكت.

الأعظمي 9314صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Nearness of his death, his foretelling of it, his passing, and his burial
Section
His informing Fatimah of his approaching death
Numbering
Jami al-Kamil 9314 (2nd edition)
Azami 9314