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."
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب الطهارة / 135-1
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»