The Prophet ﷺ said: When one of you becomes defiled during prayer, he should hold his nose and then turn away. Abu Dawud said: This tradition has been narrated by Hammad b. Salamah and Abu Usamah from Hisham on the authority of his father from the Prophet ﷺ . They did not mention the name of 'Aishah. (Using translation from Abū Dāʾūd 1114)
"إذا أحدث أحدُكم في صلاتهِ فليأخُذْ بِأَنفِه ثمَّ لِيَنْصَرِفْ".