Jami` at-Tirmidhi, Book 10, Hadith 12 (Tirmidhi 978)

Abu Sa'eed Al-Khudri narrated that:

The Prophet said: "Instruct your dying to say: (La illaha illallah) 'None has the right to be worshipped but Allah'