It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Some poetry is certainly based on wisdom, and some eloquence certainly has the effect of magic."
Imam Ahmad (may Allah have mercy on him) also narrated it through Hasan bin Musa, Abd al-Rahman and Affan from Abu Awanah.
Also through al-Fadl from Sharik, who narrates from Simak.
He also narrated it through Abu Sa'id from Za'idah.
Imam Abu Dawud (may Allah have mercy on him) narrated it through Musaddad.
Imam al-Tirmidhi (may Allah have mercy on him) narrated it through Qutaybah bin Sa'id and said: "This hadith is hasan."
Imam Ibn Majah (may Allah have mercy on him) narrated it through Abu Bakr bin Abi Shaybah, from Abu Usamah, from Za'idah, from Simak.
Imam al-Tirmidhi and Imam Ibn Majah (may Allah have mercy on them both) did not narrate the words "Some eloquence certainly has the effect of magic."
Imam Abu Hatim al-Busti (may Allah have mercy on him) narrated it with the complete text through Muhammad bin Ali al-Sayrafi (Ghulam Talut), from Ibn Abi al-Shawarib Muhammad bin Abd al-Malik, from Abu Awanah.
In Sahih al-Bukhari, in the hadith narrated from Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him), the Prophet (peace and blessings be upon him) said: "Some poetry is certainly based on wisdom."
And it has also been narrated with an addition to this: