It is narrated that Sayyiduna Amr bin Awf bin Milhah al-Muzani (may Allah be pleased with him) said: I heard the Messenger of Allah (peace and blessings be upon him) say: "Some poetry contains wisdom."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 14093