The Prophet said: "Beware of An-Na'i, for indeed announcing one's death is from the deeds of Jahliyyah."
Jami` at-Tirmidhi Book 10, Hadith 20