It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Indeed, some eloquent speech has the effect of magic, and some poetry contains wisdom."
Hadith Referenceالمعجم الكبير للطبراني / باب الألف / 752