Kaab bin Malik reported,

He said to the Prophet ﷺ, "Allah عز وجل has revealed concerning poetry what He has revealed."The Prophet replied, "The believer struggles with his sword and his tongue. By the One in whose hand my soul rests, what you strike them with is like a shower of arrows."

Azami 12942

Sahih

عن كعب بن مالك

أنه قال للنبي ﷺ: إن الله عز وجل قد أنزل في الشعر ما أنزل، فقال: إن المؤمن يجاهد بسيفه ولسانه، والذي نفسي بيده، لكأن ما ترمونهم به نضح النبل.

الأعظمي 12942صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Tafsir of Surah Shuara
Section
From Abu Saeed Khudri who said, "While we were traveling with the Messenger of Allah ﷺ at Arj, a poet appeared reciting poetry. The Messenger of Allah ﷺ said, 'Seize the devil' or 'Hold the devil.' For a man's belly to be filled with pus is better for him than to be filled with poetry"
Numbering
Jami al-Kamil 12942 (2nd edition)
Azami 12942