Ali said: I sent Al-Miqdad to the Messenger of Allah (ﷺ) to ask him about Madhi, and he said: 'Perform Wudu' and sprinkle water over your private part.' Abu 'Abdur-Rahman said: Makhramah (one of the narrators) did not hear anything from his father.
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'.'
It was narrated from Al-Miqdad bin Al-Aswad thatt 'Ali bin Abi Talib, peace be upon him, told him to ask the Messenger of Allah (ﷺ) about a man who gets close to a woman and Madhi comes out of him. (He said: ) For his daughter is (married) to me and I feel too shy to ask him. So he asked the Messenger of Allah (ﷺ) about that and he said: If any one of you notices that let him sprinkle water on his private parts and perform Wudu' as for prayer.