Sunan an-Nasa'i, Book 4, Hadith 45 (Nasa'i 441)

It was narrated that Sulaiman bin Yasar said:

"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'.'"