Abu Saeed Khudri reported,

While we were traveling with the Messenger of Allah ﷺ at al-Arj, a poet appeared reciting his verses. The Messenger of Allah ﷺ said, "Seize the devil," or "Hold back the devil. For a man's belly to be filled with pus is better for him than to be filled with poetry."

Muslim 5895

Sahih

حدثنا قتيبة بن سعيد الثقفي حدثنا ليث عن ابن الهاد عن يحنس مولى مصعب بن الزبير

عن أبي سعيد الخدري قال

بينا نحن نسير مع رسول الله ﷺ بالعرج إذ عرض شاعر ينشد فقال رسول الله ﷺ خذوا الشيطان أو أمسكوا الشيطان لأن يمتلئ جوف رجل قيحا خير له من أن يمتلئ شعرا

مسلم 5895صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Poetry
Chapter
Recitation of poetry, identifying the most poetic expression, and condemnation of poetry
Numbering
Darussalam 5895
Muslim 5895