The Prophet (peace and blessings be upon him) said:
"Indeed, some eloquent speech (and oratory) has (the effect of) magic, and indeed, some poetry contains (words of) wisdom."
Hadith Referenceصحیح الجامع الصغیر / حرف الألف / 2215
Hadith Gradingالألبانی:صحيح
Hadith Takhrij[حم د] ابن عباس. الصحيحة ١٧٣١: حب، ك.