حَدَّثَنَا إِبْرَاهِيمُ بْنُ مُوسَى، أَخْبَرَنَا عَبْدُ اللَّهِ بْنُ وَهْبٍ، حَدَّثَنَا مُعَاوِيَةُ، - يَعْنِي ابْنَ صَالِحٍ - عَنِ الْعَلاَءِ بْنِ الْحَارِثِ، عَنْ حَرَامِ بْنِ حَكِيمٍ، عَنْ عَمِّهِ عَبْدِ اللَّهِ بْنِ سَعْدٍ الأَنْصَارِيِّ، قَالَ سَأَلْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم عَمَّا يُوجِبُ الْغُسْلَ وَعَنِ الْمَاءِ يَكُونُ بَعْدَ الْمَاءِ فَقَالَ ‏"‏ذَاكَ الْمَذْىُ وَكُلُّ فَحْلٍ يُمْذِي فَتَغْسِلُ مِنْ ذَلِكَ فَرْجَكَ وَأُنْثَيَيْكَ وَتَوَضَّأْ وُضُوءَكَ لِلصَّلاَةِ ‏"
Translation
Narrated Abdullah ibn Sa'd al-Ansari

I asked the Messenger of Allah (ﷺ) about what makes ritual bath (ghusl) necessary and about the fluid that comes out after that. He said: "That is al-madhy, and every male produces madhy. So wash your private part and your testicles because of that, and perform ablution as you do for prayer."