It is narrated from Sayyidah Busrah bint Safwan (may Allah be pleased with her) and Sayyiduna Zayd bin Khalid al-Juhani (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When one of you touches his private part, let him perform ablution." Urwah (may Allah have mercy on him) said that Imam al-Zuhri (may Allah have mercy on him) had sent him word (though he had not heard this hadith from him directly) that he used to narrate, through Sayyidah Busrah bint Safwan (may Allah be pleased with her) and Sayyiduna Zayd bin Khalid al-Juhani (may Allah be pleased with him), this saying of the Messenger of Allah (peace and blessings be upon him): "When one of you touches his private part, let him perform ablution."
Yahya bin Abi Kathir (may Allah have mercy on him) narrates from a man of the Ansar: "The Messenger of Allah (peace and blessings be upon him) prayed, then returned to his sitting place and performed ablution, then repeated the prayer and said: 'I had touched my private part and forgot (to perform ablution).'"