Sayyiduna Abu Umamah (may Allah be pleased with him) said: The Prophet (peace and blessings be upon him) used to seek refuge from sudden death, and he (peace and blessings be upon him) liked to be ill for some time before dying.
Hadith Referenceالمعجم الكبير للطبراني / باب الصاد / 7571