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