Sahih al-Bukhari 6154
Book 78: Good Manners and Form (Al-Adab) · Narrated by Ibn `Umar
Arabic
حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُوسَى، أَخْبَرَنَا حَنْظَلَةُ، عَنْ سَالِمٍ، عَنِ ابْنِ عُمَرَ ـ رضى الله عنهما ـ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " لأَنْ يَمْتَلِئَ جَوْفُ أَحَدِكُمْ قَيْحًا خَيْرٌ لَهُ مِنْ أَنْ يَمْتَلِئَ شِعْرًا ".
English translation
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, Book of Good Manners and Form (Al-Adab). English translation by Dr. Muhammad Muhsin Khan.