Sahih al-Bukhari 4459
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مُحَمَّدٍ، أَخْبَرَنَا أَزْهَرُ، أَخْبَرَنَا ابْنُ عَوْنٍ، عَنْ إِبْرَاهِيمَ، عَنِ الأَسْوَدِ، قَالَ ذُكِرَ عِنْدَ عَائِشَةَ أَنَّ النَّبِيَّ صلى الله عليه وسلم أَوْصَى إِلَى عَلِيٍّ، فَقَالَتْ مَنْ قَالَهُ لَقَدْ رَأَيْتُ النَّبِيَّ صلى الله عليه وسلم وَإِنِّي لَمُسْنِدَتُهُ إِلَى صَدْرِي، فَدَعَا بِالطَّسْتِ فَانْخَنَثَ فَمَاتَ، فَمَا شَعَرْتُ، فَكَيْفَ أَوْصَى إِلَى عَلِيٍّ
Narrated Al-Aswad:
It was mentioned in the presence of `Aisha that the Prophet (ﷺ) had appointed `Ali as successor by will. Thereupon she said, "Who said so? I saw the Prophet, while I was supporting him against my chest. He asked for a tray, and then fell on one side and expired, and I did not feel it. So how (do the people say) he appointed `Ali as his successor?"
Full reference and source
Sahih al-Bukhari 4459 In-book : Book 64, Hadith 475 USC-MSA web (English) : Vol. 5, Book 59, Hadith 736 (deprecated)
View source on Sunnah.com (opens in a new tab)