Mishkat al-Masabih 1626
وَعَن عَبْدِ اللَّهِ بْنِ جَعْفَرٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَقِّنُوا مَوْتَاكُمْ لَا إِلَهَ إِلَّا اللَّهُ الْحَلِيمُ الْكَرِيمُ سُبْحَانَ اللَّهِ رَبِّ الْعَرْشِ الْعَظِيمِ الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ» قَالُوا: يَا رَسُولَ اللَّهِ كَيْفَ لِلْأَحْيَاءِ؟ قَالَ: «أَجود وأجود» . رَوَاهُ ابْن مَاجَه
From ʿAbdullah ibn Jaʿfar, who said: The Messenger of Allah ﷺ said: "Prompt your dying to say: 'There is no god but Allah, the Forbearing, the Generous. Glory be to Allah, Lord of the Mighty Throne. Praise be to Allah, Lord of the worlds.'" They said: "O Messenger of Allah, how is it for the living?" He said: "Better and better." Reported by Ibn Majah.