The Messenger of Allah ﷺ delivered a sermon and admonished them for laughing when someone passed wind. He said, "Why does one of you laugh at something he himself does?"
خطب رسول الله ﷺ ثم وعظهم في ضحكهم من الضرطة فقال: إلام يضحك أحدكم مما يفعل؟
Bukhari related it in the Book of Tafsir (4942), and Muslim in the Book of Paradise (2855), both by way of Hisham bin Urwa, from his father, from Abdullah bin Zama, who said, then he mentioned it.His words, "breaking wind," come from the verb "yadrutu," meaning "darata," "diratan," and "diraatan," that is, expelling air from one's rear with a sound. The hadith prohibits laughing at someone's breaking wind when one hears it from another. Rather, one should pretend not to notice it, continue with what one was saying or doing without paying it any attention, and give the impression that one did not hear it at all. This hadith points to good manners and proper conduct in social relations.