Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ibnmajah:483ʿAlī b. Muḥammad > Wakīʿ > Muḥammad b. Jābir

"I heard the Messenger of Allah being asked about touching the penis. He said: 'That does not require ablution, because it is a part of you (your body).'"  

ابن ماجة:٤٨٣حَدَّثَنَا عَلِيُّ بْنُ مُحَمَّدٍ حَدَّثَنَا وَكِيعٌ حَدَّثَنَا مُحَمَّدُ بْنُ جَابِرٍ قَالَ سَمِعْتُ قَيْسَ بْنَ طَلْقٍ الْحَنَفِيَّ عَنْ أَبِيهِ قَالَ

سَمِعْتُ رَسُولَ اللَّهِ ﷺ سُئِلَ عَنْ مَسِّ الذَّكَرِ فَقَالَ لَيْسَ فِيهِ وُضُوءٌ إِنَّمَا هُوَ مِنْكَ  


See similar narrations below:

Collected by Ibn Mājah
ibnmajah:484ʿAmr b. ʿUthmān b. Saʿīd b. Kathīr b. Dīnār al-Ḥimṣī > Marwān b. Muʿāwiyah > Jaʿfar b. al-Zubayr > al-Qāsim > Abū Umāmah

"The Messenger of Allah was asked about touching the penis and he said: 'Rather it is a piece of you (your body).'"  

ابن ماجة:٤٨٤حَدَّثَنَا عَمْرُو بْنُ عُثْمَانَ بْنِ سَعِيدِ بْنِ كَثِيرِ بْنِ دِينَارٍ الْحِمْصِيُّ حَدَّثَنَا مَرْوَانُ بْنُ مُعَاوِيَةَ عَنْ جَعْفَرِ بْنِ الزُّبَيْرِ عَنِ الْقَاسِمِ عَنْ أَبِي أُمَامَةَ قَالَ

سُئِلَ رَسُولُ اللَّهِ ﷺ عَنْ مَسِّ الذَّكَرِ فَقَالَ إِنَّمَا هُوَ حذية مِنْكَ