Umm Sulaym al-Ansariyyah, who is the mother of Anas bin Malik, said, "Messenger of Allah, indeed Allah is not shy of the truth. Tell me, if a woman sees in her sleep what a man sees, must she perform the ritual bath or not?"Ayesha said, the Prophet ﷺ replied, "Yes, she must bathe if she finds the fluid."Ayesha said, I turned to her and said, "Shame on you! Does a woman really experience that?"The Messenger of Allah ﷺ turned to me and said, "May your hands be dusty, Ayesha. From where else would the resemblance come?"
حدثنا أحمد بن صالح حدثنا عنبسة حدثنا يونس عن ابن شهاب قال قال عروة
أن أم سليم الأنصارية هي أم أنس بن مالك قالت يا رسول الله إن الله عز وجل لا يستحيي من الحق أرأيت المرأة إذا رأت في النوم ما يرى الرجل أتغتسل أم لا قالت عائشة فقال النبي ﷺ نعم فلتغتسل إذا وجدت الماء قالت عائشة فأقبلت عليها فقلت أف لك وهل ترى ذلك المرأة فأقبل علي رسول الله ﷺ فقال تربت يمينك يا عائشة ومن أين يكون الشبه
Muslim narrated it in the chapter "The Obligation of Ghusl for a Woman upon the Emission of Fluid (mani)," in the Book of Menstruation, hadith no. 314, from Aqeel bin Khalid, from Ibn Shihab Zuhri, in brief.