Abu Hurairah reported,

The Messenger of Allah ﷺ said to his uncle when he was dying, "Say, 'There is no god but Allah,' and I will testify on your behalf with it on the Day of Resurrection." But he refused, so Allah revealed, "Indeed, you do not guide whom you love" [Qasas 28:56].

Azami 3742

Sahih

عن أبي هريرة قال

قال رسول الله ﷺ لعمه عند الموت: قل لا إله إلا الله أشهد لك بها يوم القيامة فأبى، فأنزل الله: {إنك لا تهدي من أحببت} [سورة القصص: ٥٦].

الأعظمي 3742صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Prayer over the deceased
Section
Prohibition of praying over hypocrites and polytheists and seeking forgiveness for them
Numbering
Jami al-Kamil 3742 (2nd edition)
Azami 3742