Wathila bin Asqa reported,

The Messenger of Allah ﷺ said, "Among the greatest fabrications are that a man claims someone other than his father as his father, or claims his eye saw what it did not see, or attributes to the Messenger of Allah ﷺ words he did not say."

Azami 14544

Sahih

عن واثلة بن الأسقع، يقول

قال رسول الله ﷺ: إن من أعظم الفرى أن يدعي الرجل إلى غير أبيه، أو يري عينه مالم تر، أو يقول على رسول الله ﷺ ما لم يقل.

الأعظمي 14544صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Names, kunyas, and titles
Section
Discouragement from a man attributing himself to other than his father and to other than his freed slaves
Numbering
Jami al-Kamil 14544 (2nd edition)
Azami 14544