(382) بَابُ الشِّعْرُ حَسَنٌ كَحَسَنِ الْكَلامِ وَمِنْهُ قَبِيحٌ
'Abdullah ibn 'Amr reported that the Messenger of Allah, may Allahbless him and grant him peace, said, "Poetry is in the same position asspeech. The good of it is like good words and its bad part is like badwords."
Reference: Al-Adab Al-Mufrad 865
In-book reference: Book 36, Hadith 10
English translation: Book 36, Hadith 865