"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'.'"
أَرْسَلَ عَلِيُّ بْنُ أَبِي طَالِبٍ ؓ الْمِقْدَادَ إِلَى رَسُولِ اللَّهِ ﷺ يَسْأَلُهُ عَنِ الرَّجُلِ يَجِدُ الْمَذْىَ فَقَالَ رَسُولُ اللَّهِ ﷺ يَغْسِلُ ذَكَرَهُ ثُمَّ لْيَتَوَضَّأْ