"O Messenger of Allah, Allah is not shy to tell the truth. Does a women have to perform Ghusl if she has a wet dream?" He said: "Yes, if she sees water." Umm Salamah laughed and said: "Do women really have wet dreams?" The Messenger of Allah (ﷺ) said: "How else would her child resemble her?" That is, if she has an emission of the fluid of an orgasm.
Sunan an-Nasa'i Book 1, Hadith 198