“I heard the Messenger of Allah
(ﷺ)
say: ‘There is no Prophet who fell sick but he was given the
choice
between this world and the Hereafter.’ She said: ‘When he
became
sick with the illness that would be his last, (his voice)
became
hoarse and I heard him say, “In the company of those on whom
Allah
has bestowed His grace, of the Prophets, the true believers, the
martyrs, and the righteous.’” Then I knew that he had been
given the choice.”
Sunan Ibn Majah Book 6, Hadith 188