(19) بَابُ إِذَا قَالَ وَاللَّهِ لاَ أَتَكَلَّمُ الْيَوْمَ. فَصَلَّى أَوْ قَرَأَ أَوْ سَبَّحَ أَوْ كَبَّرَ أَوْ حَمِدَ أَوْ هَلَّلَ، فَهْوَ عَلَى نِيَّتِهِ
Narrated Al-Musaiyab:
When the death of Abu Talib approached, Allah's Messenger (ﷺ) came to him and said, "Say: La ilaha illallah, a word with which I will be able to defend you before Allah."
Reference: Sahih al-Bukhari 6681
In-book reference: Book 83, Hadith 58
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 8, Book 78, Hadith 672