Aswad reported,

It was mentioned in Ayesha's presence that the Prophet ﷺ had made a will appointing Ali as his successor. She said, "Who said this? I saw the Prophet ﷺ while I was supporting him against my chest. He asked for a basin, then slumped over and died, and I did not even realize it. So how could he have made a will appointing Ali?"

Bukhari 4459

Sahih

حدثنا عبد الله بن محمد أخبرنا أزهر أخبرنا ابن عون عن إبراهيم

عن الأسود قال

ذكر عند عائشة أن النبي ﷺ أوصى إلى علي فقالت من قاله لقد رأيت النبي ﷺ وإني لمسندته إلى صدري فدعا بالطست فانخنث فمات فما شعرت فكيف أوصى إلى علي

البخاري 4459صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Expeditions
Chapter
Illness of the Prophet ﷺ and his death
Numbering
Darussalam 4459
Bukhari 4459