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