When the death of Abu Talib approached, Allah's Messenger (ﷺ) came to him and said, "Say…

Sahih al-Bukhari Book 83 Hadith 58

Sahih al-Bukhari #6681

Oaths and Vows 83:58

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."

Chapter: If one says: "By Allah! I will not speak today"

Grade: Sahih