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. (ES)
English reference (ES): Vol. 1, Book 5, Hadith 1222 (ES)
Arabic reference (ES): Book 5, Hadith 1279 (ES)