Ali bin Abu Talib reported,

He instructed him to ask the Messenger of Allah ﷺ about a man who, when he draws near to his wife, has prostatic fluid come out of him, saying, "His daughter is married to me, and I am too shy to ask him myself."So he asked the Messenger of Allah ﷺ about that, and he replied, "When any of you experiences that, let him wash his private part and perform ablution as he would for prayer."

Nasai 441

Sahih

أخبرنا عتبة بن عبد الله قال قرئ على مالك وأنا أسمع عن أبي النضر عن سليمان بن يسار عن المقداد بن الأسود ع

ن علي بن أبي طالب رضي الله عنه

أمره أن يسأل رسول الله ﷺ عن الرجل إذا دنا من المرأة فخرج منه المذي فإن عندي ابنته وأنا أستحيي أن أسأله فسأل رسول الله ﷺ عن ذلك فقال إذا وجد أحدكم ذلك فلينضح فرجه وليتوضأ وضوءه للصلاة

النسائي 441صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Ghusl and tayammum
Chapter
Command to perform wudu after sleeping
Numbering
Darussalam 441
Nasai 441