The Messenger of Allah ﷺ said, "Indeed, some poetry contains wisdom."
حدثنا يزيد بن هارون أخبرنا إبراهيم بن سعد عن الزهري عن أبي بكر بن عبد الرحمن بن الحارث بن هشام عن مروان بن الحكم عن ابن الأسود بن عبد يغوث
أن رسول الله ﷺ قال إن من الشعر حكمة
No references are available.
Its isnad is sahih, its narrators are trustworthy and well known. The hadith was reported by Bukhari 10/537 no. 6145, in the Book of Manners, on what kind of poetry is permissible, and by Abu Dawud 4/304 no. 5010 with similar wording, and by Darimi in 2/297, in the Book of Seeking Permission, and by Ibn Hibban 494 no. 2017, Mawarid.