When-was-Psalms-written
Short answer: The Psalms were not written at one time. The book is a collection of collections composed across roughly six centuries, from about 1400 BC at the earliest (if Psalm 90 is Moses') to the fifth century BC, after the return from Babylon. David's psalms belong to around 1000 BC; Solomon's to the tenth century; psalms of the exiled and returning community to the sixth and fifth centuries. Psalms 90:1-17 is titled a prayer of Moses, which would make it the oldest psalm in the book; Psalms 137:1-9 clearly comes from the Babylonian exile; Psalms 126:1-6 comes from the return. The book was compiled into its present five-part form after the exile, but the material inside it is older.
Why the Psalms cannot have one date
Anyone who asks when the Psalms were written usually expects a single answer, the way one might ask about a letter of Paul. But the Psalter does not work that way. It is an anthology, and its contents are dated by their own internal markers: titles that name an author or occasion, historical situations reflected in the text, and language that fits a particular period of Israel's life. The range of those markers is wide, so a single date cannot cover the whole book.
Three anchors are especially clear. Second Samuel 22:1-51 introduces a song of David given on a specific day: David spoke to Yahweh the words of this song in the day that Yahweh delivered him out of the hand of all his enemies, and out of the hand of Saul. That places at least some Davidic material around 1000 BC. Psalms 137:1-9 opens by the rivers of Babylon, so it cannot predate the exile of the sixth century. Psalms 126:1-6 begins, When Yahweh brought back those who returned to Zion, we were like those who dream, which places it after the return.
Between those poles, the psalms cover the monarchy, the divided kingdom, the Assyrian crisis, the fall of Jerusalem, and the Persian period. The book therefore has a long composition history rather than a single moment of writing. That is not a problem for the doctrine of Scripture; it is simply how a book of songs and prayers was gathered over time.
Moses and the earliest layer of the Psalter
The title attached to Psalms 90:1-17 identifies it as a prayer of Moses, the man of God. If that title is taken at face value, Psalm 90 is the oldest poem in the Psalter by centuries, reaching back to the wilderness period. Its opening line, Lord, you have been our dwelling place for all generations, has the plainness of a man who has watched a whole generation die in the desert, and the psalm goes on to measure human life against God's eternity.
Its closing petition fits that setting: a request for God to establish the work of human hands. It is the prayer of someone who has seen the results of a lifetime of wandering and wants something to outlast him. Whether or not every reader accepts the Mosaic title, the psalm's antiquity is widely granted, and it sets the earliest possible edge of the book's composition.
Nothing in the psalm requires a later setting. Its themes of mortality, divine wrath, and the brevity of life are at home in the wilderness narrative, and there is no reference to the temple, the monarchy, or the exile that would push it later. It functions in the Psalter as a doorway from the oldest age of Israel's life into the rest of the collection.
David and the tenth-century core
No figure is tied to the Psalms more closely than David, and the New Testament assumes his involvement. The titles attach roughly seventy-three psalms to him, and 2 Samuel 22 preserves one of his songs in narrative context. That context matters: the song is dated to the day Yahweh delivered him, which gives us a firm tenth-century setting for at least this poem and its parallel in the Psalter.
David's psalms arise from the pressures of his life: pursuit by Saul, war with surrounding nations, personal failure, and public worship. Psalms 3:1-8, with its cry that adversaries have increased, reads like the prayer of a man who has been hunted. These are not abstract compositions; they are prayers from a specific and dangerous career.
This does not mean every psalm titled to David was written by his own hand in its final form. Editing, updating, and collection happened afterward, and faithful students differ over how much. What the evidence supports is that a substantial body of the Psalter came from David's era, and that later generations preserved and arranged it.
Solomon, the temple, and the monarchy
Psalms 72:1-20 is titled a psalm of Solomon, and its opening line asks God to give the king your justice. Its concerns are royal and dynastic: a righteous king, a prosperous land, and a reign that endures. That fits the tenth century and the early monarchy. The psalm closes by blessing Yahweh and noting that the prayers of David the son of Jesse are ended, a line that looks like the end of an earlier collection.
The temple also left its mark on the Psalter. Psalms that celebrate Yahweh's dwelling in Zion, that describe processions into the sanctuary, and that speak of the house of God presuppose a functioning temple. That building belongs to Solomon's reign and afterward, so those psalms cannot be earlier than the tenth century.
Crisis psalms fill out the monarchic period. Assyrian invasion, national defeat, and the failure of human kings all leave traces. The Psalms are not a book of triumph only; they include the prayers of a nation learning that its kings could not save it.
Exile, return, and the final shape of the book
Psalms 137:1-9 is the clearest exile psalm. It opens by the rivers of Babylon and describes a community that wept when it remembered Zion. It cannot have been written before the deportation of the sixth century, and its raw grief fits that generation. Here the Psalter reaches its darkest national moment, asking how a people can sing Yahweh's song in a foreign land.
Psalms 126:1-6 comes from the other side of that grief. It begins when Yahweh brought back those who returned to Zion, and it describes laughter and songs among the nations. This is a post-exilic psalm, written after the Persian decree allowed the exiles to go home. It is followed, notably, by a prayer for continued restoration, because the return was real but incomplete.
The book reached its final five-part form in this period. The five divisions, each ending with a doxology, reflect deliberate editorial work by scribes who gathered older prayers into a book for the worshipping community. Compilation is part of the story, not an accident of transmission.
What the superscriptions tell us and what they do not
Many psalms carry short headings naming an author, a genre, a tune, or an occasion. These headings are ancient and were treated as part of the text by the time of the Greek translation. They are the main reason we can speak about David, Asaph, the sons of Korah, and Moses as contributors to the Psalter.
They do not, however, answer every question. A heading may describe who wrote a psalm, who collected it, or the situation it was written to address, and readers do not always agree on which. Hebrew phrases in the titles are sometimes obscure, and translations differ. Honest teaching acknowledges that uncertainty rather than resolving it by assertion.
What the headings do establish is that the Psalter was never anonymous in Israel's memory. From the beginning it was associated with named servants of God, and that association shaped how the songs were read, sung, and preserved.
How the five books were gathered
The Psalter is divided into five books, each closing with a short doxology. Book one runs through Psalm 41; book two through 72; book three through 89; book four through 106; book five to the end. Within these books there are smaller groupings, including collections tied to David, to the sons of Korah, and to Asaph, and a run of psalms in the later books that praise Yahweh as king.
This structure suggests a gradual process. Early collections were formed and used in worship; later editors added and arranged, placing early material alongside later material. Psalms 72:1-20 appears to end an earlier collection, which is one clue that the book we hold was assembled in stages rather than written in one sitting.
The final arrangement is theologically purposeful. Laments sit next to praises, royal psalms next to psalms of the afflicted, and the book closes with a cascade of praise. Whatever the dates of the individual poems, the whole is presented as the prayer book of a people who trust Yahweh across every season.
Does the dating affect the truth of the Psalms?
Some readers worry that a long composition history undermines the Psalms. It does not. The same is true of other Old Testament books, and the church has always read the Psalter as Scripture without needing every psalm to come from a single hand or century. The question of when the Psalms were written is a historical question, not a test of inspiration.
What the dates do show is that these prayers were tested over centuries. They were prayed in the wilderness, in the monarchy, in the ruins of Jerusalem, and in the return. A psalm that survived that much use and still speaks to believers today has been proven in the life of a real community.
Faithful Christians differ on details of dating, especially on how much of the Psalter reflects later editing. Those differences are worth discussing with patience. The core claim is stable: these are the prayers of God's people, given by God's Spirit, and Psalm 90's own line about Yahweh being our dwelling place for all generations is the confession of a community that spans the whole period.
Biblical fidelity check
Psalms 90:1-17 establishes that Moses is presented as the author of this prayer and that God has been Israel's dwelling place across generations. It does not establish a date for the whole Psalter, and it does not tell us when the book reached its final form. The title is genuine evidence for the psalm's early setting, not a certificate of the book's completion. Later psalms in the same collection clearly come from after the exile, which means the book's contents span centuries.
A common misreading is to say the heading proves the entire book was written by Moses, or at the other extreme that the headings are worthless and nothing can be known. Both moves go beyond the text. The headings are ancient and meaningful, but they are attached to individual poems, not to the collection as a whole. The right reading is that the Psalter is a gathered book containing material from many ages, and that its final editing belongs to the post-exilic community.
Other passages that speak to Psalms 90:1-17
For comparison, read psalms from opposite ends of the book's history. Psalms 3:1-8 shows the prayer of a king surrounded by enemies, while 2 Samuel 22:1-51 gives a song tied to a specific day of deliverance in David's life. Psalms 72:1-20, ascribed to Solomon, carries royal concerns into the next generation, and Psalms 137:1-9 and Psalms 126:1-6 bring us from exile to return. For related study, see Why trust the Bible when it was written by humans? A Biblical Guide and the narrative passages that frame David's rise: 1 Samuel 1: Hannah's Prayer and Samuel's Birth, 1 Samuel 10: Samuel Anoints Saul and Signs Confirm, and 1 Samuel 11: Saul Rescues Jabesh Gilead and Renews Kingdom.
Frequently asked questions
Who wrote the Psalms, and does every psalm have a named author?
No. About seventy-three psalms are titled to David, and others are assigned to Asaph, the sons of Korah, Solomon, Ethan, Heman, and Moses. A substantial number carry no author at all. The headings are ancient and were treated as part of the text in the Greek translation. The Psalter is therefore a collection from several hands rather than the work of one author, and the unnamed psalms are just as much Scripture as the titled ones.
Were the Psalms written before or after the exile?
Both. Psalm 90 goes back to the wilderness period if its Mosaic title is accepted. David's psalms belong to roughly 1000 BC, Solomon's to the tenth century, and many others to the monarchy that followed. Psalms 137:1-9 comes from the Babylonian exile, and Psalms 126:1-6 from the return. The book was edited into its five-part shape after the exile, so its contents straddle the whole span.
How can we date psalms without original manuscripts?
We use several lines of evidence: author titles, historical references such as the rivers of Babylon, the state of the temple and monarchy, language and style, and the book's internal collections. These converge on a span from the wilderness period to the Persian era. The Dead Sea Scrolls confirm that the Psalter was copied carefully, though they do not provide an autograph. Dating is a matter of converging evidence, not certainty in every case.