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.
nasai:439Sūwayd b. Naṣr > ʿAbdullāh > Layth b. Saʿd > Bukayr b. al-Ashaj > Sulaymān b. Yasār > Arsal

"Ali bin Abi Talib sent Al-Miqdad to the Messenger of Allah ﷺ to ask him about a man who notices Madhi. The Messenger of Allah ﷺ said: 'Let him wash his penis then perform Wudu'.'"  

النسائي:٤٣٩أَخْبَرَنَا سُوَيْدُ بْنُ نَصْرٍ قَالَ أَنْبَأَنَا عَبْدُ اللَّهِ عَنْ لَيْثِ بْنِ سَعْدٍ عَنْ بُكَيْرِ بْنِ الأَشَجِّ عَنْ سُلَيْمَانَ بْنِ يَسَارٍ قَالَ

أَرْسَلَ عَلِيُّ بْنُ أَبِي طَالِبٍ ؓ الْمِقْدَادَ إِلَى رَسُولِ اللَّهِ ﷺ يَسْأَلُهُ عَنِ الرَّجُلِ يَجِدُ الْمَذْىَ فَقَالَ رَسُولُ اللَّهِ ﷺ يَغْسِلُ ذَكَرَهُ ثُمَّ لْيَتَوَضَّأْ