Jami` at-Tirmidhi Book 43, Hadith 126
that the Messenger of Allah (ﷺ) said: "It is better that one of you fill his insides with puss than to fill it with poetry."
"I sat with the Prophet (ﷺ) more than one-hundred times. His Companions used to recite poetry and talk about things that occurred during Jahiliyyah, and he would remain silent, and sometimes he would smile along with them."
from his father that the Messenger of Allah (ﷺ) said: "It is better that one of you fill his insides with puss than to fill it with poetry."