Psalm 90 for sleep is the oldest prayer in the Bible — the only psalm written by Moses, the man who led a whole nation through the wilderness for forty years and watched a generation grow old and die in the desert. He wrote it at the end of a long life, and it reads like a man who has finally understood the two things that matter most: that God has always been home, and that our days are short, and numbered, and therefore precious. It begins with the most comforting sentence in all of Scripture for a sleepless night: Lord, thou hast been our dwelling place in all generations. Not a house. Not a tent. Not a place on a map. A dwelling place — a home — and the home is God Himself, in all generations, before the mountains, before the world, from everlasting to everlasting. If tonight you feel homeless in your own life — tired, displaced, unsure where you belong — then read this psalm whole, and slowly, one verse at a time, and let Moses teach you the prayer he learned in forty years of wilderness: count your days, and come home.

Our dwelling place in all generations

Here is the whole psalm, in the words of the old King James Bible. It opens with a declaration that has steadied frightened people for three thousand years: “Lord, thou hast been our dwelling place in all generations. Before the mountains were brought forth, or ever thou hadst formed the earth and the world, even from everlasting to everlasting, thou art God.” Moses had lived in Egypt, in Midian, in the wilderness. He had slept in palaces and in tents, under the stars and under the cloud. He had no home on earth that lasted — and so he tells us where home really is: not in a place, but in a Person. Before the mountains were brought forth — before the oldest, hardest, most permanent things in the world existed — God was already God, and already home. From everlasting to everlasting. Your grandparents' God is your God. Your children's God is your God. The God who was home for Moses in the wilderness is home for you tonight, in this room, in this dark. You have never once been without a dwelling place. You only forgot where it was.

A thousand years in thy sight

And then Moses does the honest arithmetic of a man who has buried his friends: “Thou turnest man to destruction; and sayest, Return, ye children of men. For a thousand years in thy sight are but as yesterday when it is past, and as a watch in the night. Thou carriest them away as with a flood; they are as a sleep: in the morning they are like grass which groweth up. In the morning it flourisheth, and groweth up; in the evening it is cut down, and withereth.” A thousand years — the longest stretch of time Moses could imagine — is, in God's sight, but as yesterday when it is past. As a watch in the night: three hours, the time between one changing of the guard and the next. Our lives are carried away as with a flood; they are as a sleep. In the morning we are like grass, green and flourishing; in the evening we are cut down and withered. This is not cruelty. It is honesty — the honesty of a man who has watched a whole generation die in the desert and still believes God is good. Our days are short. That is the fact. And because they are short, they are precious. The grass that lives one day is not wasted — it is beautiful precisely because it lives one day, and the morning sun finds it green.

Moses does not hide from the hard part. He names it plainly, the way a man names a wound so it can heal: “For we are consumed by thine anger, and by thy wrath are we troubled. Thou hast set our iniquities before thee, our secret sins in the light of thy countenance.” Our secret sins — the ones no one else knows, the ones we carry into the night and rehearse when we cannot sleep — are set in the light of His face. Nothing is hidden. And yet — and this is the wonder of the psalm — Moses keeps praying. He does not run from the light. He asks for wisdom inside it. The God who sees everything is the same God who has been our dwelling place in all generations. The light that exposes us is the light of home.

Teach us to number our days

And then, in the middle of the psalm, comes the prayer that has been prayed by more dying and sleepless people than any other verse in the Bible: “The days of our years are threescore years and ten; and if by reason of strength they be fourscore years, yet is their strength labour and sorrow; for it is soon cut off, and we fly away.” Seventy years. Eighty, if we are strong. And even the strong years are labour and sorrow — and then, soon cut off, and we fly away. Moses does not flinch. He counts the days honestly: seventy, eighty, and then we fly away. And from that counting, he draws the one request that makes the whole psalm worth praying: “So teach us to number our days, that we may apply our hearts unto wisdom.” Teach us to number our days. Not to count them the way an accountant counts coins, but the way a man counts the last days of a journey — carefully, gratefully, one at a time, knowing each one is a gift that will not come again. Numbering our days is not morbid. It is the opposite of morbid: it is the discipline of refusing to waste them. The man who numbers his days does not hurry through them. He applies his heart to wisdom — he sets his heart on the things that last, and lets the rest go. Tonight, lying awake, you can begin: count this day. It was a day. It had a morning. It will not come again. And God was your dwelling place in it, from the first hour to the last.

Satisfy us early with thy mercy

And then the psalm turns — the way every true prayer turns, from honesty to hope — and Moses asks for the morning: “Return, O Lord, how long? and let it repent thee concerning thy servants. O satisfy us early with thy mercy; that we may rejoice and be glad all our days. Make us glad according to the days wherein thou hast afflicted us, and the years wherein we have seen evil.” Return, O Lord — how long? How long until the mercy comes? And the answer Moses prays for is early: satisfy us early with thy mercy, in the morning, before the day has worn us down, so that we may rejoice and be glad all our days — not just the easy ones, but all of them. Make us glad according to the days we were afflicted — gladness measured out in proportion to the sorrow, so that no suffering is wasted, so that the years we saw evil are answered, day for day, with joy. And then the psalm ends with the two requests every tired worker prays at the end of a long life: “Let thy work appear unto thy servants, and thy glory unto their children. And let the beauty of the Lord our God be upon us: and establish thou the work of our hands upon us; yea, the work of our hands establish thou it.” Let the beauty of the Lord be upon us. Establish the work of our hands. Twice he says it — establish thou it — because the things that matter most are always worth saying twice. Our hands are tired. Our days are numbered. But the beauty of the Lord is upon us, and the work of our hands — the small, faithful, ordinary work — He will establish it. It will last.

What this psalm teaches us

  • God is your dwelling place — not a place, but a Person. Lord, thou hast been our dwelling place in all generations. Before the mountains, from everlasting to everlasting, God was already home. You have never once been without one.
  • Our days are short — and that is why they are precious. A thousand years in thy sight are but as yesterday. The grass flourishes in the morning and is cut down in the evening — and the morning sun still finds it green. Short is not wasted.
  • Numbering your days is how you stop wasting them. So teach us to number our days, that we may apply our hearts unto wisdom. Count this day: it was a day, it had a morning, it will not come again — and God was your dwelling place in it.
  • Mercy comes early, and gladness answers sorrow day for day. O satisfy us early with thy mercy. Ask for the morning, and let the beauty of the Lord be upon you — and the work of your hands, He will establish it.

For the one who cannot sleep tonight

Perhaps tonight you are counting — counting the years, counting what is left, counting the days you have wasted and wondering if there are enough left to matter. Moses counted too, and his prayer was not “give me more days” but “teach me to number the ones I have.” So count this one, gently: this day had a morning, and God was your dwelling place in it. The years behind you are not lost — they are the generations in which He has been home. And the work of your hands — the small, faithful, ordinary work, the meals, the kindnesses, the prayers nobody saw — He will establish it. It will last. Say the prayer with Moses tonight, slowly, and let it carry you into sleep: teach us to number our days, that we may apply our hearts unto wisdom. And then: satisfy us early with thy mercy, that we may rejoice and be glad all our days. If you need another psalm for a night like this, you will find more among our Bible Sleep Stories — and you may especially rest in Psalm 91: A Protection Prayer for the Night, the psalm of the secret place of the Most High, where a thousand shall fall at your side and it shall not come near you, and in Psalm 46: Be Still, and Know That I Am God, the psalm of the refuge that does not move when the earth does. Lord, thou hast been our dwelling place. Teach us to number our days. And satisfy us early with thy mercy.

“So teach us to number our days, that we may apply our hearts unto wisdom.” — Psalm 90:12

More stories for the night

The Sleepy Sage tells a gentle Bible story for every kind of sleepless night. Subscribe, and let the next one find you.

Subscribe to The Sleepy Sage

Keep reading