Aishah reported that the Prophet ﷺ used to say while he was in good health, "No prophet's soul is taken until he is shown his place in Paradise, and then he is given the choice."When his final illness came upon him and his head was resting on my thigh, he lost consciousness for a while, then he came to. He fixed his gaze upward toward the ceiling of the room and said, "O Allah, the Highest Companion."I said to myself, "Then he is not choosing to remain with us." And I realized that this was the very saying he used to tell us about when he was healthy.She said, "His final words were, 'O Allah, the Highest Companion.'"
كان النبي ﷺ يقول- وهو صحيح-: إنه لم يقبض نبي حتى يرى مقعده من الجنة، ثم يخير فلما نزل به ورأسه على فخذي غشي عليه، ثم أفاق فأشخص بصره إلى سقف البيت، ثم قال: اللهم الرفيق الأعلى. فقلت: إذا لا يختارنا، وعرفت أنه الحديث الذي كان يحدثنا وهو صحيح. قالت: فكانت آخر كلمة تكلم بها: اللهم الرفيق الأعلى.
Bukhari related it in the Book of Military Expeditions (4463), and Muslim in the Book of the Virtues of the Companions (2424:87), both through the route of Zuhri, who said, "Saeed bin Musayab, along with men of knowledge, informed me that Ayesha said," and he mentioned it. Muslim added Urwa bin Zubayr alongside Saeed bin Musayab in the chain of transmission.