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