Abdullah bin Abbas reported,

He informed him that Ali bin Abu Talib came out from the presence of the Messenger of Allah ﷺ during the illness from which he died. The people asked, "Abu Hasan, how has the Messenger of Allah ﷺ fared this morning?"Ali replied, "He has woken up, praise be to Allah, in a state of recovery."Abbas bin Abdul-Muttalib took him by the hand and said to him, "By Allah, within three days you will be a slave to the staff. By Allah, I see that the Messenger of Allah ﷺ will soon die of this illness of his. I recognize the faces of the sons of Abdul-Muttalib at the time of death. Let us go to the Messenger of Allah ﷺ and ask him with whom this matter of leadership will rest. If it is to be among us, we will know it, and if it is to be with others, we will know it, and he will give instructions concerning us."Ali said, "By Allah, if we ask the Messenger of Allah ﷺ for it and he refuses us, the people will never give it to us after him. By Allah, I will not ask the Messenger of Allah ﷺ for it."

Azami 9325

Sahih

عن عبد الله بن عباس

أخبره أن علي بن أبي طالب خرج من عند رسول الله ﷺ في وجعه الذي توفي فيه، فقال الناس: يا أبا حسن! كيف أصبح رسول الله ﷺ؟ فقال: أصبح بحمد الله بارئا، فأخذ بيده عباس بن عبد المطلب فقال له: أنت والله بعد ثلاث عبد العصا، وإني والله لأرى رسول الله ﷺ سوف يتوفى من وجعه هذا، إني لأعرف وجوه بني عبد المطلب عند الموت، اذهب بنا إلى رسول الله ﷺ فلنسأله فيمن هذا الأمر، إن كان فينا علمنا ذلك، وإن كان في غيرنا علمناه، فأوصى بنا. فقال علي: إنا والله لئن سألناها رسول الله ﷺ فمنعناها لا يعطيناها الناس بعده، وإني والله لا أسألها رسول الله ﷺ.

الأعظمي 9325صحيح
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
Illness of the Messenger of Allah ﷺ
Numbering
Jami al-Kamil 9325 (2nd edition)
Azami 9325