Kaab bin Malik reported,

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

Azami 14584

Sahih

عن كعب بن مالك

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

الأعظمي 14584صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Etiquette of speech, words, and correspondence
Section
Good speech, poetry, rajaz, and huda
Numbering
Jami al-Kamil 14584 (2nd edition)
Azami 14584