Umm Salama bint Abu Umaya reported,

Umm Sulaym said, "Messenger of Allah, Allah is not shy of the truth. Does a woman have to perform the ritual bath if she has a wet dream?"He replied, "Yes, if she sees the fluid."Umm Salama laughed and said, "Does a woman have wet dreams?"The Messenger of Allah ﷺ said, "Then how else would the child resemble her?"

Bukhari 3328

Sahih

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

عن أم سلمة

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

البخاري 3328صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Hadiths of the prophets
Chapter
Creation of Adam, peace be upon him, and his descendants
Numbering
Darussalam 3328
Bukhari 3328