It is narrated from Sayyiduna Miqdad bin Aswad (may Allah be pleased with him) that once Sayyiduna Ali said to me: Ask the Prophet (peace and blessings be upon him) about the ruling for a person who plays with his wife and madhiy (pre-seminal fluid), which is not semen, comes out from his private part. In response, the Prophet (peace and blessings be upon him) said: He should wash his private part and perform ablution as for prayer.
Hadith Referenceمسند احمد / مسند المدنيين رضي الله عنهم اجمعين / 16725
Hadith Gradingحکم دارالسلام:صحيح لغيره، وهذا إسناد ضعيف، محمد بن إسحاق مدلس، وقد عنعن