"O Messenger of Allah! Allah is not shy to tell the truth. Inform me: if a women sees in a dream what men see should she perform Ghusl from that?" The Messenger of Allah (ﷺ) said to her: "Yes." 'Aishah said: "I expressed my displeasure and said: 'Does a woman see that?' The Messenger of Allah (ﷺ) turned to me and said: 'May your right hand be covered with dust! How else would (her child) resemble her?'"
Sunan an-Nasa'i Book 1, Hadith 197