Prayer to prevent nightmares: how to find peace when falling asleep
Biblebox Editorial Team Published on
- Published on .
- Updated on .
A prayer before closing your eyes
If you came here because you fear what comes when you sleep, begin with prayer. It is born out of Psalm 4 — a psalm that David wrote at the end of a bad day, not knowing if the night would be any better.
Em paz me deito
e logo pego no sono,
porque só tu, Senhor,
me fazes repousar seguro.
Lord, the night has arrived and I didn't want it to come. I am afraid to close my eyes and of where dreams might take me. I am afraid of the silence, because that is where my thoughts grow.
Take this bed. Take what I haven't resolved today and whatever will be waiting for me tomorrow.
Guard my sleep from nightmares. Guard this home and everyone sleeping in it. If I wake up in the middle of the night, stay with me until I fall back asleep. If sleep does not come, may peace at least arrive.
In peace I will lie down, for you alone make me dwell in safety. Amen.
(Psalm 4:8)
Pray slowly. If a sentence isn't yours, skip it. If a sentence feels more yours than the others, linger on it.
Afterwards, if you wish, keep reading. What follows below is the path the psalm takes until it reaches that final sentence — and it is a path that begins far away from peace.
This article is part of Prayers Anxiety and Fear
The night David wasn't sure of anything
Psalm 4 doesn't start in bed. It begins on a day when David is surrounded: people turning his honor into shame, people who love lies and chase after illusions. That's how he describes it in verse 2. It is not a peaceful day that ends in peaceful sleep. It is a heavy day that, even so, ends in sleep.
Notice the question that appears in the middle of the psalm, in verse 6: "Who will show us any good?". It is the question of someone who is weary. It isn't a theological question — it's the question of someone who lay down, stared at the ceiling, and thought: will tomorrow be just the same?
Have you ever asked that question in the dark? It usually comes alongside the others: what if I don't sleep, what if I dream about that again, what if tomorrow is worse than today.
The psalm does not pretend those questions don't exist. It moves straight through them. Between verse 2 and verse 8 there is a whole journey — from crying out to silence, from silence to joy, from joy to sleep. It is worth reading Psalm 4 in its entirety, all at once, before going to sleep. It is eight verses long. There is time.
Speak to your own heart in bed, and then be silent
In the middle of that path, David gives an instruction that seems strange at first glance:
Perturbai-vos e não pequeis;
falai com o vosso coração
sobre a vossa cama, e calai-vos. (Selá.)
"Commune with your own heart upon your bed, and be still." Other translations say "search your hearts and be silent" or "ponder it on your beds and be quiet". The imagery is the same: the bed is the place where you speak with what is inside you — and then you stop.
What does that mean?
First: the anxiety of the night is not meant to be pushed away. David doesn't say "don't think". He says: speak to your heart. Put into words what is in there. Does the fear of sleeping have a name? The thought that returns every night — what is it about, exactly? Often anxiety grows precisely because it remains nameless, like a shadow you never turn around to face.
So face it. Say it, softly or just within yourself: "I'm afraid of dreaming about that again." "I'm afraid of not sleeping and not being able to handle tomorrow." "I'm angry with someone and I don't know what to do about it." The psalm calls this speaking to your heart. It is an honest conversation, in bed, with yourself before God.
Second: after speaking, be still. It is the hardest part. The anxious mind wants to keep going — to resolve, to plan, to replay. But the psalm says: speak, and then be quiet. Not because the problem vanished. But because it has already been spoken, and what has been spoken can be surrendered.
The silence that comes after is not empty. In the Christian contemplative tradition, silence before God is also prayer — perhaps the deepest prayer, of someone who has already said it all and now simply remains. You do not need to fill this silence with more words. You can just breathe in it.
If it helps, do this: three slow breaths. With each one, a short sentence — "God, tonight I surrender." And then, nothing. Let the phrase settle like a stone slowly sinking in water.
When fear is of sleep itself
For those who have recurring nightmares, the problem isn't just sleeping. It's what comes when one sleeps. The bed ceases to be a place of rest and becomes a place of alertness. The person postpones bedtime, leaves a light on, wakes up startled, and takes time to understand where they are.
Psalm 4 does not talk about dreams. But it talks about the only thing that makes sleep possible for someone like this: safety isn't in sleep; it's in the one who watches over us. "You alone, Lord, make me dwell in safety." You alone — not the light left on, not exhaustion taking over, not the absence of bad dreams. You.
This changes the request. Instead of "make me not dream," the prayer can be "stay with me while I sleep, and stay with me if I wake up." It is a request that God can answer in many ways — including being present on a night when the nightmare comes anyway.
And what if you wake up in the middle of the night, after a bad dream? Don't try to have an entire prayer ready. Do what the psalm says: speak to your heart — "it was a dream, I'm in my bed, I'm here" —, say one sentence to God, and be silent. It can just be "Lord, stay." The repetition of a short phrase, like breathing, is an ancient practice of Christian prayer. It's not a magic formula. It is a way of turning your face toward the light when the room is dark.
The joy that doesn't wait for the day to turn out well
Right before going to bed, David says something surprising:
Puseste no meu coração alegria maior
do que a alegria dos que desfrutam trigo e vinho em tempo de fartura.
Grain and new wine, in his world, were the harvest: the year that went well, the budget that balanced, the barn that was full. It was the joy of someone who had life figured out. And David says that the joy God put in his heart is greater than that — while he is still surrounded by enemies, while the question "who will show us any good?" still echoes.
This is important for those who go to bed with unsolved problems. The joy of verse 7 doesn't come after everything is resolved. It comes before. It comes in the midst of it. It doesn't depend on the day turning out well because it's not made of the day — it's made of the presence of the One who is with you at night.
What is left unfinished today, stays unfinished. You are not what you produced today, and you are not what you will produce tomorrow. Is it possible to sleep without having resolved it? The psalm says yes — not because resolving things doesn't matter, but because there is something that matters more and has already been given.
This joy is not euphoria. It is more like still water: a quiet depth, beneath the turmoil, that remains there even when the surface trembles. It is on this that the psalm leans to say, in the following verse, "in peace I lie down."
What the Bible doesn't promise about nightmares
It must be said honestly: the Bible does not promise that those who have faith will never have a nightmare again. Job, whom the text itself calls a blameless man, says that God terrifies him with dreams and frightens him with visions (Job 7:14). He prays, suffers, and keeps having bad nights — and the Bible records this without correcting him.
So Psalm 4 is not a guarantee of dreamless sleep. If it were, it would be a false promise, and Job would have already debunked it.
What Psalm 4 offers is something else. It is the possibility of lying down in peace even without a guarantee — because peace does not come from the certainty that nothing will happen, but from the certainty of who is present, whatever happens. David doesn't say "I won't have enemies tomorrow." He says "you alone make me dwell in safety." Safety is in the company, not in control.
For those who live with frequent nightmares or prolonged insomnia, it's worth remembering that this involves the body, not just the soul. Doctors and psychologists treat these conditions, and seeking help is not a lack of faith — it is taking care of the house where God dwells. Prayer walks alongside that, not in place of it.
When sleep simply won't come
Insomnia is a suffering of its own. It's not fear of sleeping; it's wanting to sleep and not being able to. The hours pass, the mind races, and the anxiety of not sleeping becomes yet another reason not to sleep.
Psalm 4 is not a technique for falling asleep. But it reorganizes the night. Instead of lying down with the goal of sleeping — and failing at the goal, and getting anxious about having failed —, you can lie down with another purpose: to speak to your heart, be silent, rest in God. Sleep may come or it may not. Rest, the psalm suggests, can come even when sleep does not.
This lifts a weight. If you are awake at two in the morning, that hour doesn't need to be wasted or fought against. It can be an hour of vigil — an ancient word for the time someone stays awake at night, attentive. Monks used to pray at this hour on purpose. You don't have to like being awake. But you can be awake in the presence of God instead of alone against the clock.
A simple practice: lying down, in the dark, repeat verse 8 slowly, one word at a time, breathing between them. "In peace. I lie down. For you alone. Make me. Dwell in safety." Not to hypnotize the mind, but to give it a place to land. When thoughts return — and they will return —, go back to the verse, without getting irritated with yourself. As many times as needed. Patience with one's own mind is also a form of trust.
In peace I lie down
The entire psalm fits in the journey between verse 2 and verse 8: surrounded by enemies, David speaks to his heart, falls silent, finds a joy that does not depend on grain, and lies down.
He does not lie down because the day got resolved. He lies down because he surrendered it.
Tonight, read Psalm 4 once, slowly. Then pray the opening prayer, or just its last phrase. And then do what the psalm asks: be silent. Let the silence be the conversation.
"In peace I will both lie down and sleep, for you alone, Lord, make me dwell in safety" (Psalm 4:8, ESV).
Acordei de um pesadelo no meio da noite. O que rezo agora?
Pray shortly. This is not the time for a long prayer — it is the time for a phrase you can repeat while breathing: "Lord, stay with me," or the last phrase of Psalm 4:8, "you alone make me dwell in safety." Whisper where you are, what was a dream and what is real, and then be silent. The slow repetition of a short phrase is an ancient practice of Christian prayer, and it serves precisely for nights like this.
Existe oração para criança que tem pesadelos?
The same prayer in this text can be adapted for a child to pray together with an adult, shortening the phrases: "God, guard my sleep. Stay with me while I sleep. Amen." The important thing is for the child to speak to God with their own words, not memorize a formula. Reading Psalm 4:8 out loud before going to sleep, every night, can also become a calming ritual — familiar repetition provides security.
Colocar a Bíblia ou um versículo debaixo do travesseiro protege contra pesadelos?
The Bible teaches this nowhere. The Word of God works when it is read, meditated upon, and prayed — not as an object. There is no harm in keeping the Bible near the bed, but the protection Psalm 4 describes comes from the One who guards ("you alone, Lord"), not from the book as an amulet. It is better to read the verse and repeat it internally than to keep it under the pillow.
E se eu rezar e a ansiedade não passar?
Psalm 4 does not promise that anxiety will disappear; it promises that God is present in it, and that it is possible to lie down in peace even without resolution. If nighttime anxiety or insomnia are frequent and intense, they deserve care from a healthcare professional — this does not replace prayer, nor is it replaced by it. Caring for the body and mind is also a way of caring for the home where God dwells.
Qual salmo ler antes de dormir?
Psalm 4 is one of the most closely linked to the night: it ends with "in peace I will both lie down and sleep." Psalm 3 is similar, also written on a day of persecution, and Psalm 121 speaks of God as the one who neither sleeps nor slumbers as He guards. For someone just starting out, it is worth staying with one single psalm for several nights in a row, rather than constantly switching — repetition is what turns the text into prayer.
Did this article speak to you? Share a prayer!
+581 are praying right now.
Join the prayer chain.