Sayyiduna Abdullah bin Ja'far (may Allah be pleased with him) narrates concerning these words: "There is no god but Allah, the Forbearing, the Magnificent; glory be to Allah, the Lord of the Noble Throne; and all praise is for Allah, the Lord of the worlds." He said: The Messenger of Allah (peace and blessings be upon him) used to say: "Teach these words to your dying ones." The Companions said: "O Messenger of Allah, what is their standing for the living?" He (peace and blessings be upon him) said: "Even better, and even better."
Imam Ibn Majah (may Allah have mercy on him) narrated it through Muhammad bin Bashshar (may Allah have mercy on him) from Abu Amir al-Aqadi (may Allah have mercy on him).
The discussion about Kathir (bin Zayd) has already passed, and I did not see this hadith in the Musnad of Imam Ahmad (may Allah have mercy on him).
Related hadith on this topic