Hisham bin Urwah narrates from his father that the Messenger of Allah ﷺ said: "Poetry is (a form of) speech; its beauty is like the beauty of speech, and its ugliness is like the ugliness of speech."
Hadith Referenceمسند الإمام الشافعي / كتاب الحج / 921