The Prophet ﷺ said, "Indeed, some poetry contains wisdom."
حدثنا أبو بكر بن أبي شيبة حدثنا ابن المبارك عن يونس عن الزهري قال حدثنا أبو بكر بن عبد الرحمن بن الحارث بن هشام عن مروان بن الحكم عن عبد الرحمن بن الأسود بن عبد يغوث
أن النبي ﷺ قال إن من الشعر حكمة
No references are available.
Bukhari narrated it in the Book of Manners, chapter on what kinds of poetry, rajaz verse, and camel-driving songs are permissible and what is disliked of it, hadith no. 6145, from the hadith of Zuhri. Ibn Majah narrated it, hadith no. 3755, from Abu Bakr bin Abu Shayba through the same chain, and it is found in al-Musannaf, 8/503.