It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Some poetry contains wisdom, and some eloquence (speech) has the effect of magic."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 10307