It is narrated from Sayyidah Busrah bint Safwan and Sayyiduna Zayd bin Khalid al-Juhani (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "When one of you touches his private part, let him perform ablution."
Ibn Jurayj said that Yahya bin Abi Kathir related on the authority of a man from the Ansar that the Messenger of Allah (peace and blessings be upon him) prayed, then returned to his seat, performed ablution and prayed that same prayer again, and then said: "I had touched my private part (before the prayer), and I forgot about it."
And it is also narrated from the Mother of the Believers, Sayyidah Aishah (may Allah be pleased with her), that the Prophet (peace and blessings be upon him) said: "When one of you touches his private part, he should perform ablution."
It is narrated from Urwah (may Allah have mercy on him); al-Zuhri says (and I did not hear it directly from him (Urwah)) that he used to narrate from Busrah bint Safwan and Sayyiduna Zayd bin Khalid al-Juhani (may Allah be pleased with him), and they from the Messenger of Allah (peace and blessings be upon him), that he (peace and blessings be upon him) said: "When any one of you touches his private part (the male organ), let him perform ablution."
Ibn Jurayj said: And Yahya bin Abi Kathir narrated through a man from the Ansar that the Messenger of Allah (peace and blessings be upon him) led the prayer, then returned to his gathering and performed ablution, then repeated the prayer and said: "I had touched my male organ (during the prayer), and I forgot."
---
The second route (the route of Mu'adh bin Hisham):
It is narrated from Yahya bin Abi Kathir; he said: A man in the Prophet's Mosque (peace and blessings be upon him) narrated to me through Urwah, from the Mother of the Believers, Sayyidah Aishah al-Siddiqah (may Allah be pleased with her), that the Prophet (peace and blessings be upon him) said: "When any one of you touches his private part, let him perform ablution."
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب الطهارة / 135
Hadith Gradingمحدثین:إسناده صحيح
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :قال ابن حجر: أَمَّا الْإِسْنَادُ الْأَوَّلُ فَصَحِيحٌ مُتَّصِلٌ ، وَحَدِيثُ بُسْرَةَ فِي السُّنَنِ الْأَرْبَعَةِ ، وَأَخْرَجَهُ أَحْمَدُ مِنْ حَدِيثِ زَيْدِ بْنِ خَالِدٍ لَكِنَّهُ مِنْ رِوَايَةِ ابْنِ إِسْحَاقَ ، عَنِ الزُّهْرِيِّ ، عَنْ عُرْوَةَ ، عَنْ زَيْدِ بْنِ خَالِدٍ . » «أخرجه سنن الترمذي برقم: 82، وأخرجه سنن النسائي برقم: 163، 164، وأخرجه سنن أبي داود برقم: 181، وأخرجه سنن ابن ماجه برقم: 479، وأخرجه مسند أحمد برقم: 26749، 27746، وأخرجه موطأ مالك برقم: 91، وأخرجه سنن الدارمي برقم: 724، 725، وأخرجه فتح الباري برقم: 266، وأخرجه مسند البزار برقم: 3762، وأخرجه المستدرك على الصحيحين برقم: 485، 487، وأخرجه صحيح ابن خزيمة برقم: 33، وأخرجه المعجم الأوسط للطبراني برقم: 1480، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 1272، وأخرجه صحيح ابن حبان برقم: 1113، وأخرجه مسند الإمام الشافعي برقم: 57، وأخرجه شرح السنة برقم: 165، وأخرجه إتحاف الخيرة المهرة بزوائد المسانيد العشرة برقم: 598/1، 599/1»