Abdullah bin Abu Qatada reported,

Whenever the Messenger of Allah ﷺ was invited to a funeral, he would ask about the deceased. If they were spoken of well, he would stand and pray over them. If they were spoken of otherwise, he would say to the family, "It is your affair," and would not pray over them.

Ahmad 22555

Sahih

حدثنا يعقوب حدثنا أبي عن أبيه حدثني

عبد الله بن أبي قتادة عن أبيه

كان رسول الله ﷺ إذا دعي لجنازة سأل عنها فإن أثني عليها خير قام فصلى عليها وإن أثني عليها غير ذلك قال لأهلها شأنكم بها ولم يصل عليها

أحمد 22555صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Qatada Ansari
Numbering
Darussalam 22555
Ahmad 22555