It is narrated from Sayyiduna Rafi' bin Khadij (may Allah be pleased with him) that Sayyiduna Ali (may Allah be pleased with him) told Sayyiduna Ammar (may Allah be pleased with him) to ask the Prophet (peace and blessings be upon him) about madhy (pre-seminal fluid), and he (peace and blessings be upon him) said: "He should wash his private part and perform ablution."
Hadith Referenceالمعجم الكبير للطبراني / باب الراء / 4425
Sayyiduna Rafi' bin Khadij (may Allah be pleased with him) said: The Messenger of Allah (peace and blessings be upon him) was asked about madhy (pre-seminal fluid), and he (peace and blessings be upon him) said: "Wash your private part and perform ablution as you do for prayer."
Hadith Referenceالمعجم الكبير للطبراني / باب الراء / 4426