It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) visited a man from the Ansar who was ill and said to him: "O maternal uncle! Say: 'La ilaha illallah' (There is no god but Allah)." He said: "(Am I your) maternal uncle or paternal uncle?" He (peace and blessings be upon him) said: "Rather, maternal uncle." He said: "So is it better for me to say 'La ilaha illallah'?" He (peace and blessings be upon him) said: "Yes."
These are the words (narrated) by Abd al-Malik.
And in the narration of Affan and Abd al-Samad (the words of the reply) are: "He (peace and blessings be upon him) said: No, rather maternal uncle."
And Affan narrated (these words): "He said: And is it better for me to say it? He (peace and blessings be upon him) said: Yes."
And the hadith of Abd al-Samad is close to it.
Related hadith on this topic