Jami` at-Tirmidhi, Book 10, Hadith 20 (Tirmidhi 986)

Abdullah narrated that:

The Prophet said: "Beware of An-Na'i, for indeed announcing one's death is from the deeds of Jahliyyah."