Umm Sulaym bint Milhan reported,

It is reported that she asked the Prophet of Allah ﷺ about a woman who sees in her sleep what a man sees.The Messenger of Allah ﷺ replied, "If a woman sees that, she must perform the ritual bath."Umm Sulaym said, "I felt shy at this." She then asked, "Does this really happen?"The Prophet of Allah ﷺ answered, "Yes. Otherwise, where would the resemblance come from? The man's fluid is thick and white, and the woman's fluid is thin and yellow. Whichever of the two prevails or comes first determines the resemblance."

Muslim 710

Sahih

حدثنا عباس بن الوليد حدثنا يزيد بن زريع حدثنا سعيد عن قتادة أن أنس بن مالك حدثهم أن

أم سليم

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

مسلم 710صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Menstruation
Chapter
Obligation of ghusl upon a woman when mani exits from her
Numbering
Darussalam 710
Muslim 710