Sayyidah Aishah (may Allah be pleased with her) said: We used to hear that a prophet does not die until he is given the choice between this world and the Hereafter. And she said: The Prophet (peace and blessings be upon him) was in the illness in which he (peace and blessings be upon him) passed away, and his (peace and blessings be upon him) voice had become hoarse. I listened, and he (peace and blessings be upon him) was saying: "With those upon whom Allah has bestowed favour among the prophets, the truthful, the martyrs and the righteous; and how excellent are those as companions!" [Surah al-Nisa: 69]. She said: I thought that he (peace and blessings be upon him) was being given the choice between this world and the Hereafter.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النكاح / 13417