أَخْبَرَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ، قَالَ أَخْبَرَنَا جَرِيرٌ، عَنْ هِشَامِ بْنِ عُرْوَةَ، عَنْ أَبِيهِ، عَنْ عَلِيٍّ، - رضى الله عنه - قَالَ قُلْتُ لِلْمِقْدَادِ إِذَا بَنَى الرَّجُلُ بِأَهْلِهِ فَأَمْذَى وَلَمْ يُجَامِعْ فَسَلِ النَّبِيَّ صلى الله عليه وسلم عَنْ ذَلِكَ فَإِنِّي أَسْتَحِي أَنْ أَسْأَلَهُ عَنْ ذَلِكَ وَابْنَتُهُ تَحْتِي ‏.‏ فَسَأَلَهُ فَقَالَ ‏"‏ يَغْسِلُ مَذَاكِيرَهُ وَيَتَوَضَّأُ وُضُوءَهُ لِلصَّلاَةِ ‏"‏ ‏.‏

It was narrated that 'Ali said: "I said to Al-Miqdad: 'If a man is intimate with his wife and excretes prostatic fluid but does not have intercourse - ask the Prophet (PBUH) about that, for I am too shy to ask him about it since his daughter is married to me.' So he asked him, and he said: 'Let him wash his male member and perform Wudu' as for Salah.'" Translation Not Available

Book Ref: Sunan An Nisai Book 1 Hadith 153
Web Ref:  Sunan An Nisai Not Available