Al-Adab Al-Mufrad, Book 36, Hadith 872 (English) ⓘ
Ibn 'Abbas said that a man - or a bedouin - came to the Prophet, may Allah bless him and grant him peace, and spoke some eloquent words. The Prophet, may Allah bless him and grant him peace, said, "There is some magic eloquence and some wisdom in poetry."
حَدَّثَنَا عَارِمٌ، قَالَ: حَدَّثَنَا أَبُو عَوَانَةَ، عَنْ سِمَاكٍ، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ، أَنَّ رَجُلاً، أَوْ أَعْرَابِيًّا، أَتَى النَّبِيَّ صلى الله عليه وسلم فَتَكَلَّمَ بِكَلاَمٍ بَيِّنٍ، فَقَالَ النَّبِيُّ صلى الله عليه وسلم: إِنَّ مِنَ الْبَيَانِ سِحْرًا، وَإِنَّ مِنَ الشِّعْرِ حِكْمَةً.
also referenced under: Hadith 872 (Reference) & Book 36, Hadith 17 (In-Book)