There is no sin in having a sexual dream

Q: What should a woman do if she dreamt that she had sex with a man?

A: All praise be to Allah Alone, and peace and blessings be upon His Messenger, and his family and Companions. There is no sin on man if he sees in his dream that he is having sexual intercourse with a woman or on woman if she sees in her dream a man having intercourse with her. This is because they are not held accountable before Allah (Exalted be He) for what they experience during sleep because it is something out of their hand to prevent. Allah (Exalted be He) does not charge a soul beyond its capacity. It is also authentically reported that the Prophet (peace be upon him) said: “The Pen is lifted (is stopped from recording the deeds) of three: a sleeper until he awakes, a child until he attains puberty and a lunatic until he regains reason.” Related by Ahmad, Abu Dawud, Al-Nasa'y, and Al-Hakim who said: the Hadith is in accordance with the conditions of Al-Bukhari and Muslim. However, it is obligatory upon the person who has such a dream to take Ghusl (ritual bath) if Maniy (sperm/vaginal secretions) is discharged. (Part No. 5; Page No. 312) May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.