Sahih al-Bukhari, Book 61, Hadith 19 (Bukhari 3360)

Narrated Wathila bin Al-Asqa:

Allah's Messenger (ﷺ) said, "Verily, one of the worst lies is to claim falsely to be the son of someone other than one's real father, or to claim to have had a dream one has not had, or to attribute to me what I have not said."