Sunan Abi Dawud, Book 43, Hadith 239 (Abu Dawud 5013)

Narrated Abdullah ibn Abbas:

A desert Arab came to the Prophet (ﷺ) and began to speak. Thereupon the Messenger of Allah (ﷺ) said: In eloquence there is magic and in poetry there is wisdom.