I love God with all my heart and love to strive to obey all His commands every day. I beg Him to give me a clean and pure heart, and I govern my thoughts and actions all day every day with His word. But when I go to sleep at night I sin in my dreams and feel awful about it. The things I do in my dreams I would never do in real life, but in my dreams I do them with ease. Does this mean I have not been cleansed?
Thank you for any advice.
Sleep and dreams are very important to your health. Not only does the body get a chance to rest and recuperate from the exertions of the day, but your mind has a chance to organize all the experiences that you had. Bits and pieces of things you have seen or heard are connected to past events or to ideas. Generally the brain goes overboard on the connections and then when a connection is rarely or never used, prunes the unneeded connection. But sometimes the associations can be strange. Have you ever had someone say a chance word or saw something and suddenly thought of something totally unrelated? That word or event reminded you of that thought because of some of the odd connections that your brain makes. That is your brain at work.
When you dream, you are, in a sense, watching and experiencing the connections being made. That is why dreams can be so bizarre. Fragments of a scene from a show you watched is blended with an event at school which is combined with a fear that you have and you can't make heads or tails why you are dreaming such weird things.
Now add to the mix that your body is still working out how to make use of your sexual organs. Your seminal vesicles get full, sending signals to the brain that it needs to be emptied. You're having an erection because you are in the dream state of sleep, so signals are coming in that you are sexually aroused. The brain responds with sexually connected ideas. You probably have masturbated, so your brain remembers what that is like. You are interested in girls, planning to marry one day. You overheard someone in the locker room bragging about getting a hand job and wondered what it was like. And the next thing you know your brain is threading all these disjoint ideas into a dream. The body responds by getting really aroused and you start going through the motions of sex in your sleep, which just reinforces the dream that you're having, and then .... you have an orgasm and ejaculate. This the nature of what wet dreams are like.
You cannot directly control your dreams. The connections being made are out of your control. Thus, having a wet dream about something that you know is sinful is not in itself a sin. The only thing in your control is the material your brain has to work with. You are not going to be able to keep all evil from your notice. Otherwise, as Jesus said, we would have to leave the world. "I do not pray that You should take them out of the world, but that You should keep them from the evil one" (John 17:15). But we can minimize the bad ideas that we are exposed to. That means being willing to turn off the TV when the gratuitous sex scene shows up, or refusing to watch a show that you know will probably have one. It means refusing to listen to songs that talk about sex outside of marriage. Like Job, we have to control what we look at. "I have made a covenant with my eyes; Why then should I look upon a young woman?" (Job 31:1).
You, I, and every other man have struggled with dreams that we have had. Don't beat yourself up over something you can't control and don't let dreams make you doubt your commitment to the Lord.