Yahya related to me from Malik from Abu'n Nadr, the mawla of Abdullah ibn Ubaydullah, from Sulayman ibn Yasar from alMiqdad ibn al- Aswad that Ali ibn Abi Talib told him to ask the Messenger of Allah ﷺ what a man should do, who, when close to his wife, had a flow of prostatic fluid. Ali explained that the daughter of the Messenger of Allah ﷺ was living with him then and he was too shy to ask for himself. Al-Miqdad said, "I asked the Messenger of Allah ﷺ about it, and he said, 'When you find that, wash your genitals with water and do wudu as for prayer.' "
أَنْ يَسْأَلَ لَهُ رَسُولَ اللَّهِ ﷺ عَنِ الرَّجُلِ إِذَا دَنَا مِنْ أَهْلِهِ فَخَرَجَ مِنْهُ الْمَذْىُ مَاذَا عَلَيْهِ قَالَ عَلِيٌّ فَإِنَّ عِنْدِي ابْنَةَ رَسُولِ اللَّهِ ﷺ وَأَنَا أَسْتَحِي أَنْ أَسْأَلَهُ قَالَ الْمِقْدَادُ فَسَأَلْتُ رَسُولَ اللَّهِ ﷺ عَنْ ذَلِكَ فَقَالَ إِذَا وَجَدَ ذَلِكَ أَحَدُكُمْ فَلْيَنْضَحْ فَرْجَهُ بِالْمَاءِ وَلْيَتَوَضَّأْ وُضُوءَهُ لِلصَّلاَةِ