Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:7217Yaḥyá b. Yaḥyá > Sulaymān b. Bilāl > Yaḥyá b. Saʿīd > al-Qāsim b. Muḥammad > ʿĀʾishah Wāraʾsāh

ʿAisha said, "O my head!" Messenger of Allah ﷺ said, "If that (i.e., your death) should happen while I am still alive, I would ask Allah to forgive you and would invoke Allah for you." ʿAisha said, "O my life which is going to be lost! By Allah, I think that you wish for my death, and if that should happen then you would be busy enjoying the company of one of your wives in the last part of that day." The Prophet said, "But I should say, 'O my head!' I feel like calling Abu Bakr and his son and appoint (the former as my successors lest people should say something or wish for something. Allah will insist (on Abu Bakr becoming a Caliph) and the believers will prevent (anyone else from claiming the Caliphate)," or "..Allah will prevent (anyone else from claiming the Caliphate) and the believers will insist (on Abu Bakr becoming the Caliph).  

البخاري:٧٢١٧حَدَّثَنَا يَحْيَى بْنُ يَحْيَى أَخْبَرَنَا سُلَيْمَانُ بْنُ بِلاَلٍ عَنْ يَحْيَى بْنِ سَعِيدٍ سَمِعْتُ الْقَاسِمَ بْنَ مُحَمَّدٍ قَالَ قَالَتْ عَائِشَةُ ؓ

وَارَأْسَاهْ! فَقَالَ رَسُولُ اللَّهِ ﷺ ذَاكِ لَوْ كَانَ وَأَنَا حَىٌّ فَأَسْتَغْفِرُ لَكِ وَأَدْعُو لَكِ فَقَالَتْ عَائِشَةُ وَاثُكْلِيَاهْ وَاللَّهِ إِنِّي لأَظُنُّكَ تُحِبُّ مَوْتِي وَلَوْ كَانَ ذَاكَ لَظَلِلْتَ آخِرَ يَوْمِكَ مُعَرِّسًا بِبَعْضِ أَزْوَاجِكَ فَقَالَ النَّبِيُّ ﷺ بَلْ أَنَا وَارَأْسَاهْ لَقَدْ هَمَمْتُ أَوْ أَرَدْتُ أَنْ أُرْسِلَ إِلَى أَبِي بَكْرٍ وَابْنِهِ فَأَعْهَدَ أَنْ يَقُولَ الْقَائِلُونَ أَوْ يَتَمَنَّى الْمُتَمَنُّونَ ثُمَّ قُلْتُ يَأْبَى اللَّهُ وَيَدْفَعُ الْمُؤْمِنُونَ أَوْ يَدْفَعُ اللَّهُ وَيَأْبَى الْمُؤْمِنُونَ  


See similar narrations below:

Collected by Bukhārī, Bayhaqī
bukhari:5666Yaḥyá b. Yaḥyá Abū Zakariyyāʾ > Sulaymān b. Bilāl > Yaḥyá b. Saʿīd > al-Qāsim b. Muḥammad > ʿĀʾishah Wāraʾsāh

ʿAisha, (complaining of headache) said, "Oh, my head"! Messenger of Allah ﷺ said, "I wish that had happened while I was still living, for then I would ask Allah's Forgiveness for you and invoke Allah for you." Aisha said, "Wa thuklayah! By Allah, I think you want me to die; and If this should happen, you would spend the last part of the day sleeping with one of your wives!" The Prophet ﷺ said, "Nay, I should say, 'Oh my head!' I felt like sending for Abu Bakr and his son, and appoint him as my successor lest some people claimed something or some others wished something, but then I said (to myself), 'Allah would not allow it to be otherwise, and the Muslims would prevent it to be otherwise".  

البخاري:٥٦٦٦حَدَّثَنَا يَحْيَى بْنُ يَحْيَى أَبُو زَكَرِيَّاءَ أَخْبَرَنَا سُلَيْمَانُ بْنُ بِلاَلٍ عَنْ يَحْيَى بْنِ سَعِيدٍ قَالَ سَمِعْتُ الْقَاسِمَ بْنَ مُحَمَّدٍ قَالَ قَالَتْ عَائِشَةُ

وَارَأْسَاهْ! فَقَالَ رَسُولُ اللَّهِ ﷺ ذَاكِ لَوْ كَانَ وَأَنَا حَىٌّ فَأَسْتَغْفِرُ لَكِ وَأَدْعُو لَكِ فَقَالَتْ عَائِشَةُ وَاثُكْلِيَاهْ وَاللَّهِ إِنِّي لأَظُنُّكَ تُحِبُّ مَوْتِي وَلَوْ كَانَ ذَاكَ لَظَلِلْتَ آخِرَ يَوْمِكَ مُعَرِّسًا بِبَعْضِ أَزْوَاجِكَ فَقَالَ النَّبِيُّ ﷺ بَلْ أَنَا وَارَأْسَاهْ لَقَدْ هَمَمْتُ أَوْ أَرَدْتُ أَنْ أُرْسِلَ إِلَى أَبِي بَكْرٍ وَابْنِهِ وَأَعْهَدَ أَنْ يَقُولَ الْقَائِلُونَ أَوْ يَتَمَنَّى الْمُتَمَنُّونَ ثُمَّ قُلْتُ يَأْبَى اللَّهُ وَيَدْفَعُ الْمُؤْمِنُونَ أَوْ يَدْفَعُ اللَّهُ وَيَأْبَى الْمُؤْمِنُونَ  

bayhaqi:6568[Chain 1] Abū Saʿīd ʿUthmān b. ʿAbdūs b. Maḥfūẓ al-Faqīh > Abū Muḥammad Yaḥyá b. Manṣūr > Jaʿfar b. Muḥammad b. al-Ḥusayn al-Turk > Yaḥyá b. Yaḥyá [Chain 2] Abū ʿAbdullāh al-Ḥāfiẓ > Abū Naṣr Muḥammad b. Muḥammad b. Yūsuf al-Faqīh > Muḥammad b. Naṣr Abū ʿAbdullāh And ʾIsmāʿīl b. Qutaybah Abū Yaʿqūb > Yaḥyá b. Yaḥyá al-Tamīmī > Sulaymān b. Bilāl > Yaḥyá b. Saʿīd > al-Qāsim b. Muḥammad > ʿĀʾishah Wāraʾsāh

ʿAisha, (complaining of headache) said, "Oh, my head"! Messenger of Allah ﷺ said, "I wish that had happened while I was still living, for then I would ask Allah's Forgiveness for you and invoke Allah for you." Aisha said, "Wa thuklayah! By Allah, I think you want me to die; and If this should happen, you would spend the last part of the day sleeping with one of your wives!" The Prophet ﷺ said, "Nay, I should say, 'Oh my head!' I felt like sending for Abu Bakr and his son, and appoint him as my successor lest some people claimed something or some others wished something, but then I said (to myself), 'Allah would not allow it to be otherwise, and the Muslims would prevent it to be otherwise". (Using translation from Bukhārī 5666)   

البيهقي:٦٥٦٨أَخْبَرَنَا أَبُو سَعِيدٍ عُثْمَانُ بْنُ عَبْدُوسِ بْنِ مَحْفُوظٍ الْفَقِيهُ ثنا أَبُو مُحَمَّدٍ يَحْيَى بْنُ مَنْصُورٍ ثنا جَعْفَرُ بْنُ مُحَمَّدِ بْنِ الْحُسَيْنِ التُّرْكُ ثنا يَحْيَى بْنُ يَحْيَى ح وَأَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ أَبُو نَصْرٍ مُحَمَّدُ بْنُ مُحَمَّدِ بْنِ يُوسُفَ الْفَقِيهُ ثنا مُحَمَّدُ بْنُ نَصْرٍ أَبُو عَبْدِ اللهِ وَإِسْمَاعِيلُ بْنُ قُتَيْبَةَ أَبُو يَعْقُوبَ قَالَا ثنا يَحْيَى بْنُ يَحْيَى التَّمِيمِيُّ أنبأ سُلَيْمَانُ بْنُ بِلَالٍ عَنْ يَحْيَى بْنِ سَعِيدٍ قَالَ سَمِعْتُ الْقَاسِمَ بْنَ مُحَمَّدٍ يَقُولُ قَالَتْ عَائِشَةُ

وَارَأْسَاهْ! فَقَالَ رَسُولُ اللهِ ﷺ ذَاكَ لَوْ كَانَ وَأَنَا حَيٌّ فَأَسْتَغْفِرَ لَكِ وَأَدْعُوَ لَكِ فَقَالَتْ عَائِشَةُ وَاثُكْلِتَاهْ وَاللهِ إِنِّي لَأَظُنُّكَ تُحِبُّ مَوْتِي وَلَوْ كَانَ ذَلِكَ لَظَلَلْتَ آخِرَ يَوْمِكَ مُعَرِّسًا بِبَعْضِ أَزْوَاجِكَ قَالَتْ فَقَالَ رَسُولُ اللهِ ﷺ بَلْ أَنَا وَارَأْسَاهْ لَقَدْ هَمَمْتُ أَوْ أَرَدْتُ أَنْ أُرْسِلَ إِلَى أَبِي بَكْرٍ وَابْنِهِ فَأَعْهَدَ أَنْ يَقُولَ الْقَائِلُونَ أَوْ يَتَمَنَّى الْمُتَمَنُّونَ ثُمَّ قُلْتُ يَأْبَى اللهُ وَيَدْفَعُ الْمُؤْمِنُونَ أَوْ يَدْفَعُ اللهُ وَيَأْبَى الْمُؤْمِنُونَ لَفْظُ حَدِيثِ جَعْفَرٍ  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ يَحْيَى بْنِ يَحْيَى