It wasnarrated from 'Aishah that the Prophet (ﷺ) said:
"Whenanyoneof you performs prayer and commits Hadath, (passing wind) lethimtake hold of his nose, then leave."Another chain with similar wording.
English reference: Vol. 1, Book 5, Hadith 1222
Arabic reference: Book 5, Hadith 1279
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.