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.
ahmad:1035Yaḥyá b. Saʿīd > Hishām from my father > ʿAlī

My father told me that ʿAli ؓ said to al-Miqdad: Ask the Messenger of Allah ﷺ about a man who gets close to a woman and emits madhi, for I am too shy to ask him because his daughter is married to me. The Messenger of Allah ﷺ said: “Let him wash his private part and testicles, and do wudooʿ.  

أحمد:١٠٣٥حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ عَنْ هِشَامٍ أَخْبَرَنِي أَبِي أَنَّ عَلِيًّا قَالَ

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