(92) بَابُ مَا يُكْرَهُ أَنْ يَكُونَ الْغَالِبُ عَلَى الإِنْسَانِ الشِّعْرُ حَتَّى يَصُدَّهُ عَنْ ذِكْرِ اللَّهِ وَالْعِلْمِ وَالْقُرْآنِ
Narrated Ibn `Umar:
The Prophet (ﷺ) said, "It is better for a man to fill the inside of his body with pus than to fill it with poetry."
Reference: Sahih al-Bukhari 6154
In-book reference: Book 78, Hadith 180
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 8, Book 73, Hadith 175