Used to hear (from the Prophet) that no Prophet dies till he is given the option to select either the worldly life or the life of the Hereafter. I heard the Prophet ﷺ in his fatal disease, with his voice becoming hoarse, saying, "In the company of those on whom is the grace of Allah ..( to the end of the Verse )." (4.69) Thereupon I thought that the Prophet ﷺ had been given the option. (Using translation from Bukhārī 4435)
أَسْمَعُ أَنَّ رَسُولَ اللهِ ﷺ لَا يَمُوتُ حَتَّى يُخَيِّرَ بَيْنَ الدُّنْيَا وَالْآخِرَةِ فَأَخَذْتُهُ بُحَّةٌ فِي مَرَضِهِ الَّذِي مَاتَ فِيهِ فَسَمِعْتُهُ يَقُولُ {مَعَ الَّذِينَ أَنْعَمَ اللهُ عَلَيْهِمْ مِنَ النَّبِيِّينَ وَالصِّدِّيقِينَ وَالشُّهَدَاءِ وَالصَّالِحِينَ وَحَسُنَ أُولَئِكَ رَفِيقًا} [النساء 69] فَظَنَنْتُ أَنَّهُ خُيِّرَ