Ata bin Dinar reported,

The Messenger of Allah ﷺ said, "There are three from whom prayer is not accepted, nor does it rise to the heavens, nor pass beyond their heads. A man who leads people in prayer while they dislike him, a man who performs the funeral prayer over a deceased without being authorized to do so, and a woman whose husband calls her at night and she refuses him."This narration is mursal, and a similar report is transmitted from Anas as a marfu hadith.

Azami 3685

Hasan

عن عطاء بن دينار الهذلي

أن رسول الله ﷺ قال: ثلاثة لا تقبل منهم صلاة، ولا تصعد إلى السماء، ولا تجاوز رؤوسهم: رجل أم قوما وهم له كارهون، ورجل صلى على جنازة ولم يؤمر، وامرأة دعاها زوجها من الليل، فأبت عليه. وهذا مرسل، وعن أنس يرفعه مثله.

الأعظمي 3685حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Prayer over the deceased
Section
One who prayed over a funeral without being instructed
Numbering
Jami al-Kamil 3685 (2nd edition)
Azami 3685