The Messenger of Allah ﷺ, while he was in good health, used to say, "No prophet is ever taken in death until he is shown his place in Paradise, and then he is given the choice to live on or to depart."When he fell ill and the moment of his death drew near, his head was resting on Ayesha's thigh. He lost consciousness, then when he came to, he fixed his gaze toward the ceiling of the house and said, "O Allah, with the highest companions."Ayesha said, "I thought to myself, then he is not choosing to remain with us." And I realized this was the very matter he had been telling us about while he was in good health.
كان رسول الله ﷺ وهو صحيح يقول: إنه لم يقبض نبي قط حتى يرى مقعده من الجنة، ثم يحيا أو يخير. فلما اشتكى، وحضره القبض، ورأسه على فخذ عائشة غشى عليه، فلما أفاق شخص بصره نحو سقف البيت ثم قال: اللهم في الرفيق الأعلى فقلت: إذا لا يجاورنا، فعرفت أن حديثه الذي كان يحدثنا وهو صحيح.
Bukhari related it in Kitab al-Maghazi (4437) from Abu Yaman, who said, Shuayb informed us, from Zuhri, who said, Urwa bin Zubayr said, Ayesha said, and then he related it, and the wording given here is his.Muslim related it in Kitab al-Fadail (2444) through another route, from Ibn Shihab, who said, Saeed bin Musayab and Urwa bin Zubayr informed me, along with men of knowledge, that Ayesha said, and he related something similar, except that it does not contain the phrase "then he would come back to life."