Development of the Hebrew Bible canon

There is no scholarly consensus as to when the canon of the Hebrew Bible (or Tanakh) was fixed. Rabbinic Judaism recognizes the twenty-four books of the Masoretic Text (five books of the Torah, eight books of the Nevi'im, and eleven books of the Ketuvim) as the authoritative version of the Tanakh. Of these books, the Book of Daniel has the most recent final date of composition (chapters 10-12 were written sometime between 168 and 164 BCE). The canon was therefore fixed at some time after this date. Some scholars argue that it was fixed during the Hasmonean dynasty (140–40 BCE), while others argue it was not fixed until the second century CE or even later.

The book of 2 Maccabees, itself not a part of the Jewish canon, describes Nehemiah (around 400 BCE) as having "founded a library and collected books about the kings and prophets, and the writings of David, and letters of kings about votive offerings". The Book of Nehemiah suggests that the priest-scribe Ezra brought the Torah back from Babylon to the Second Temple of Jerusalem around the same time period. Both 1 and 2 Maccabees suggest that Judas Maccabeus (around 167 BCE) also collected sacred books.

Sirach
The Book of Sirach provides evidence of a collection of sacred scriptures similar to portions of the Hebrew Bible. The book, which is dated to between 196 and 175 BCE (and is not included in the Jewish canon), includes a list of names of biblical figures  in the same order as is found in the Torah (Law) and the Nevi'im (Prophets), and which includes the names of some men mentioned in the Ketuvim (Writings). Based on this list of names, some scholars have conjectured that the author, Yeshua ben Sira, had access to, and considered authoritative, the books of Genesis, Exodus, Leviticus, Numbers, Deuteronomy, Joshua, Judges, Samuel, Kings, Job, Isaiah, Jeremiah, Ezekiel, and the Twelve Minor Prophets.

His list excludes names from Ruth, Song of Songs, Esther and Daniel, suggesting that people mentioned in these works did not fit the criteria of his current listing of great men, or that he did not have access to these books, or did not consider them authoritative. In the prologue to the Greek translation of Ben Sira's work, his grandson, dated at 132 BCE, mentions both the Torah and the Nevi'im, as well as a third group of books which is not yet named as Ketuvim (the prologue simply identifies "the rest of the books").

Septuagint
The Septuagint (LXX) is a Koine Greek translation of the Hebrew scriptures, translated in stages between the 3rd to 2nd century BCE in Alexandria, Egypt.

According to Michael Barber, in the Septuagint the Torah and Nevi'im are established as canonical, but the Ketuvim appear not to have been definitively canonized yet. The translation (and editing) work might have been done by seventy (or seventy-two) elders who translated the Hebrew Bible into Koine Greek but the historical evidence for this story is rather sketchy. Beyond that, according to him, it is virtually impossible to determine when each of the other various books was incorporated into the Septuagint.

Philo and Josephus (both associated with first-century Hellenistic Judaism) ascribed divine inspiration to its translators, and the primary ancient account of the process is the circa 2nd-century BCE Letter of Aristeas. Some of the Dead Sea Scrolls attest to Hebrew texts other than those on which the Masoretic Text was based; in some cases, these newly found texts accord with the Septuagint version.

Philo
In the 1st century CE, Philo Judaeus of Alexandria discussed sacred books, but made no mention of a three-part division of the Bible; although his De vita contemplativa (sometimes suggested in the 19th century to be of later, Christian, authorship) does state at III(25) that "studying… the laws and the sacred oracles of God enunciated by the holy prophets, and hymns, and psalms, and all kinds of other things by reason of which knowledge and piety are increased and brought to perfection." Philo quotes almost exclusively from the Torah, but occasionally from Ben Sira and Wisdom of Solomon.

Josephus
According to Michael Barber, the earliest and most explicit testimony of a Hebrew canonical list comes from Josephus (37 CE – c. 100 CE). Josephus refers to sacred scriptures divided into three parts, the five books of the Torah, thirteen books of the Nevi'im, and four other books of hymns and wisdom: "For we have not an innumerable multitude of books among us, disagreeing from and contradicting one another [as the Greeks have], but only twenty-two books, which contain all the records of all the past times; which are justly believed to be divine; and of them five belong to Moses, which contain his laws and the traditions of the origin of mankind till his death. the prophets, who were after Moses, wrote down what was done in their times in thirteen books. The remaining four books contain hymns to God, and precepts for the conduct of human life."

Since there are 24 books in the current Jewish canon instead of the 22 mentioned by Josephus, some scholars have suggested that he considered Ruth part of Judges, and Lamentations part of Jeremiah. Other scholars suggest that at the time Josephus wrote, such books as Song of Songs or Ecclesiastes were not yet considered canonical.

According to Gerald A. Larue, Josephus' listing represents what came to be the Jewish canon, although scholars were still wrestling with problems of the authority of certain writings at the time that he was writing. Significantly, Josephus characterizes the 22 books as canonical because they were divinely inspired; he mentions other historical books that were not divinely inspired and that he therefore did not believe belonged in the canon.

2 Esdras
The first allusion to a 24-book Jewish collection of books is found in 2 Esdras, which was probably written sometime between 90 and 100 CE, (after the destruction of the Second Temple). At the end of the narrative, Ezra receives the Holy Spirit and dictates 94 books. Then God tells him: "Make public the twenty-four books that you wrote first, and let the worthy and the unworthy read them; but keep the seventy that were written last, in order to give them to the wise among your people."

- RSV There are no clues in the text as to which of these 94 books were considered the publicly revealed 24, but it is probable that the publicly revealed books are the same or close to the 24 books of the Rabbinic Scriptures.

Pharisees
The Pharisees also debated the status of canonical books. In the 2nd century CE, Rabbi Akiva declared that those who read non-canonical books would not share in the afterlife. But, according to Bacher and Grätz, Akiva was not opposed to a private reading of the Apocrypha, as is evident from the fact that he himself makes frequent use of Sirach.

They also debated the status of Ecclesiastes and Song of Songs concluding like the tradition of Rabbi Simeon ben Azzai that they are holy. Akiva stoutly defended, however, the canonicity of the Song of Songs, and Esther. But Heinrich Graetz's statements respecting Akiva's attitude toward the canonicity of the Song of Songs are misconceptions, as I.H. Weiss has to some extent shown. He was antagonistic toward the Septuagint text family and the apocryphal books contained therein, since Christians drew so heavily from them.

Council of Jamnia
The Mishnah, compiled at the end of the 2nd century CE, describes a debate over the status of some books of Ketuvim, and in particular over whether or not they render the hands ritually impure. Yadaim 3:5 calls attention to a debate over Song of Songs and Ecclesiastes. The Megillat Ta'anit, in a discussion of days when fasting is prohibited but that are not noted in the Bible, mentions the holiday of Purim. Based on these, and a few similar references, Heinrich Graetz concluded in 1871 that there had been a Council of Jamnia (or Yavne in Hebrew) which had decided Jewish canon sometime in the late 1st century (c. 70–90). This became the prevailing scholarly consensus for much of the 20th century. W. M. Christie was the first to dispute this popular theory in 1925. Jack P. Lewis wrote a critique of the popular consensus in 1964. Raymond E. Brown largely supported Lewis in his review, as did Lewis' discussion of the topic in 1992's Anchor Bible Dictionary. Sid Z. Leiman made an independent challenge for his University of Pennsylvania thesis published later as a book in 1976, in which he wrote that none of the sources used to support the theory actually mentioned books that had been withdrawn from a canon, and questioned the whole premise that the discussions were about canonicity at all, stating that they were actually dealing with other concerns entirely. Other scholars have since joined in and today the theory is largely discredited.

Some scholars argue that the Jewish canon was fixed earlier by the Hasmonean dynasty. Jacob Neusner published books in 1987 and 1988 that argued that the notion of a biblical canon was not prominent in 2nd-century Rabbinic Judaism or even later and instead that a notion of Torah was expanded to include the Mishnah, Tosefta, Jerusalem Talmud, Babylonian Talmud and midrashim. Thus, there is no scholarly consensus as to when the Jewish canon was set.