Who Wrote the Bible? Part 1: The Basics
A short collection of Talmudic sources on the Authorship of parts of the Tanach
וַיִּכְתֹּ֣ב מֹשֶׁ֗ה אֵ֚ת כׇּל־דִּבְרֵ֣י יְהֹוָ֔ה וַיַּשְׁכֵּ֣ם בַּבֹּ֔קֶר וַיִּ֥בֶן מִזְבֵּ֖חַ תַּ֣חַת הָהָ֑ר וּשְׁתֵּ֤ים עֶשְׂרֵה֙ מַצֵּבָ֔ה לִשְׁנֵ֥ים עָשָׂ֖ר שִׁבְטֵ֥י יִשְׂרָאֵֽל׃
And Moshe wrote all the words of the Lord, and rose up early in the morning, and built an altar under the hill, and twelve pillars, according to the twelve tribes of Yisra᾽el.
וַיֹּ֤אמֶר יְהֹוָה֙ אֶל־מֹשֶׁ֔ה כְּתׇב־לְךָ֖ אֶת־הַדְּבָרִ֣ים הָאֵ֑לֶּה כִּ֞י עַל־פִּ֣י ׀ הַדְּבָרִ֣ים הָאֵ֗לֶּה כָּרַ֧תִּי אִתְּךָ֛ בְּרִ֖ית וְאֶת־יִשְׂרָאֵֽל׃
And the Lord said to Moshe, Write thou these words: for after the tenor of these words I have made a covenant with thee and with Yisra᾽el.
וַיִּכְתֹּ֨ב מֹשֶׁ֜ה אֶת־מוֹצָאֵיהֶ֛ם לְמַסְעֵיהֶ֖ם עַל־פִּ֣י יְהֹוָ֑ה וְאֵ֥לֶּה מַסְעֵיהֶ֖ם לְמוֹצָאֵיהֶֽם׃
And Moshe wrote their goings out according to their journeys by the commandment of the Lord: and these are their journeys according to their goings out.
וַיִּכְתֹּ֣ב מֹשֶׁה֮ אֶת־הַתּוֹרָ֣ה הַזֹּאת֒ וַֽיִּתְּנָ֗הּ אֶל־הַכֹּֽהֲנִים֙ בְּנֵ֣י לֵוִ֔י הַנֹּ֣שְׂאִ֔ים אֶת־אֲר֖וֹן בְּרִ֣ית יְהֹוָ֑ה וְאֶל־כׇּל־זִקְנֵ֖י יִשְׂרָאֵֽל׃
And Moshe wrote this Tora, and delivered it to the priests the sons of Levi, who bore the ark of the covenant of the Lord, and to all the elders of Yisra᾽el.
וַיְהִ֣י ׀ כְּכַלּ֣וֹת מֹשֶׁ֗ה לִכְתֹּ֛ב אֶת־דִּבְרֵ֥י הַתּוֹרָֽה־הַזֹּ֖את עַל־סֵ֑פֶר עַ֖ד תֻּמָּֽם׃
And it came to pass, when Moshe had made an end of writing the words of this Tora in a book, until they were finished,
וַיִּכְתֹּ֤ב יְהוֹשֻׁ֙עַ֙ אֶת־הַדְּבָרִ֣ים הָאֵ֔לֶּה בְּסֵ֖פֶר תּוֹרַ֣ת אֱלֹהִ֑ים וַיִּקַּח֙ אֶ֣בֶן גְּדוֹלָ֔ה וַיְקִימֶ֣הָ שָּׁ֔ם תַּ֚חַת הָֽאַלָּ֔ה אֲשֶׁ֖ר בְּמִקְדַּ֥שׁ יְהֹוָֽה׃ {פ}
And Yehoshua wrote these words in the book of the Tora of God, and took a great stone, and set it up there under the oak, that was by the sanctuary of the Lord.
״וַיִּכְתֹּב יְהוֹשֻׁעַ אֶת הַדְּבָרִים הָאֵלֶּה בְּסֵפֶר תּוֹרַת אֱלֹהִים״, פְּלִיגִי בַּהּ רַבִּי יְהוּדָה וְרַבִּי נְחֶמְיָה – חַד אוֹמֵר: שְׁמֹנָה פְּסוּקִים, וְחַד אוֹמֵר: עָרֵי מִקְלָט.
The Gemara cites an additional dispute with regard to the portion of the cities of refuge in the book of Joshua. It is written: “And Joshua wrote these matters in the scroll of the Torah of God” (Joshua 24:26). Rabbi Yehuda and Rabbi Neḥemya disagree with regard to this matter. One says: The reference is to the final eight verses in the Torah that record the death of Moses and were recorded by Joshua in the scroll of the Torah, in addition to the rest of the Torah that was written by Moses (see Bava Batra 15a). And one says: The reference is to the portion of the cities of refuge that appears in the book of Joshua.

וּמִי כְּתָבָן? מֹשֶׁה כָּתַב סִפְרוֹ וּפָרָשַׁת בִּלְעָם וְאִיּוֹב. יְהוֹשֻׁעַ כָּתַב סִפְרוֹ וּשְׁמוֹנָה פְּסוּקִים שֶׁבַּתּוֹרָה. שְׁמוּאֵל כָּתַב סִפְרוֹ וְשׁוֹפְטִים וְרוּת. דָּוִד כָּתַב סֵפֶר תְּהִלִּים – עַל יְדֵי עֲשָׂרָה זְקֵנִים: עַל יְדֵי אָדָם הָרִאשׁוֹן, עַל יְדֵי מַלְכִּי צֶדֶק, וְעַל יְדֵי אַבְרָהָם, וְעַל יְדֵי מֹשֶׁה, וְעַל יְדֵי הֵימָן, וְעַל יְדֵי יְדוּתוּן, וְעַל יְדֵי אָסָף,וְעַל יְדֵי שְׁלֹשָׁה בְּנֵי קֹרַח.

The baraita now considers the authors of the biblical books: And who wrote the books of the Bible? Moses wrote his own book, i.e., the Torah, and the portion of Balaam in the Torah, and the book of Job. Joshua wrote his own book and eight verses in the Torah, which describe the death of Moses. Samuel wrote his own book, the book of Judges, and the book of Ruth. David wrote the book of Psalms by means of ten elders of previous generations, assembling a collection that included compositions of others along with his own. He included psalms authored by Adam the first man, by Melchizedek king of Salem, and by Abraham, and by Moses, and by Heman, and by Jeduthun, and by Asaph, and the three sons of korach.

יִרְמְיָה כָּתַב סִפְרוֹ וְסֵפֶר מְלָכִים וְקִינוֹת. חִזְקִיָּה וְסִיעָתוֹ כָּתְבוּ (יִמְשָׁק סִימָן:) יְשַׁעְיָה, מִשְׁלֵי, שִׁיר הַשִּׁירִים וְקֹהֶלֶת. אַנְשֵׁי כְּנֶסֶת הַגְּדוֹלָה כָּתְבוּ (קַנְדָּג סִימָן:) יְחֶזְקֵאל וּשְׁנֵים עָשָׂר, דָּנִיֵּאל וּמְגִילַת אֶסְתֵּר. עֶזְרָא כָּתַב סִפְרוֹ, וְיַחַס שֶׁל דִּבְרֵי הַיָּמִים עַד לוֹ.
Jeremiah wrote his own book, and the book of Kings, and Lamentations. Hezekiah and his colleagues wrote the following, and a mnemonic to remember which books they wrote is yod, mem, shin, kuf: Isaiah [Yeshaya], Proverbs [Mishlei], Song of Songs [Shir HaShirim], and Ecclesiastes [Kohelet]. The members of the Great Assembly wrote the following, and a mnemonic to remember these books is kuf, nun, dalet, gimmel: Ezekiel [Yeḥezkel ], and the Twelve Prophets [Sheneim Asar], Daniel [Daniel ], and the Scroll of Esther [Megillat Ester]. Ezra wrote his own book and the genealogy of the book of Chronicles until his period.
מְסַיְּיעָא לֵיהּ לְרַב, דְּאָמַר רַב יְהוּדָה אָמַר רַב: לֹא עָלָה עֶזְרָא מִבָּבֶל, עַד שֶׁיִּחֵס עַצְמוֹ וְעָלָה. וּמַאן אַסְּקֵיהּ? נְחֶמְיָה בֶּן חֲכַלְיָה.
The Gemara comments: This supports Rav, as Rav Yehuda says that Rav says: Ezra did not ascend from Babylonia to Eretz Yisrael until he established his own genealogy, and after that he ascended. This genealogy is what is written in the book of Chronicles. And who completed the book of Chronicles for the generations following Ezra? Nehemiah, son of Hacaliah.
אָמַר מָר: יְהוֹשֻׁעַ כָּתַב סִפְרוֹ וּשְׁמוֹנָה פְּסוּקִים שֶׁבַּתּוֹרָה. תַּנְיָא כְּמַאן דְּאָמַר: שְׁמוֹנָה פְּסוּקִים שֶׁבַּתּוֹרָה יְהוֹשֻׁעַ כְּתָבָן. דְּתַנְיָא ״וַיָּמׇת שָׁם מֹשֶׁה עֶבֶד ה׳״ – אֶפְשָׁר מֹשֶׁה מֵת, וְכָתַב: ״וַיָּמׇת שָׁם מֹשֶׁה״?! אֶלָּא עַד כָּאן כָּתַב מֹשֶׁה, מִכָּאן וְאֵילָךְ כָּתַב יְהוֹשֻׁעַ; דִּבְרֵי רַבִּי יְהוּדָה, וְאָמְרִי לַהּ רַבִּי נְחֶמְיָה.
The Gemara elaborates on the particulars of this baraita: The Master said above that Joshua wrote his own book and eight verses of the Torah. The Gemara comments: This baraita is taught in accordance with the one who says that it was Joshua who wrote the last eight verses in the Torah. This point is subject to a tannaitic dispute, as it is taught in another baraita: “And Moses the servant of the Lord died there” (Deuteronomy 34:5); is it possible that after Moses died, he himself wrote “And Moses died there”? Rather, Moses wrote the entire Torah until this point, and Joshua wrote from this point forward; this is the statement of Rabbi Yehuda. And some say that Rabbi Neḥemya stated this opinion.
אָמַר לוֹ רַבִּי שִׁמְעוֹן: אֶפְשָׁר סֵפֶר תּוֹרָה חָסֵר אוֹת אַחַת, וּכְתִיב: ״לָקֹחַ אֵת סֵפֶר הַתּוֹרָה הַזֶּה״?! אֶלָּא עַד כָּאן הַקָּדוֹשׁ בָּרוּךְ הוּא אוֹמֵר – וּמֹשֶׁה אוֹמֵר וְכוֹתֵב; מִכָּאן וְאֵילָךְ הַקָּדוֹשׁ בָּרוּךְ הוּא אוֹמֵר – וּמֹשֶׁה כּוֹתֵב בְּדֶמַע, כְּמוֹ שֶׁנֶּאֱמַר לְהַלָּן: ״וַיֹּאמֶר לָהֶם בָּרוּךְ: מִפִּיו יִקְרָא אֵלַי אֵת כׇּל הַדְּבָרִים הָאֵלֶּה, וַאֲנִי כּוֹתֵב עַל הַסֵּפֶר בַּדְּיוֹ״.
Rabbi Shimon said to him: Is it possible that the Torah scroll was missing a single letter? But it is written: “Take this Torah scroll” (Deuteronomy 31:26), indicating that the Torah was complete as is and that nothing further would be added to it. Rather, until this point the Holy One, Blessed be He, dictated and Moses repeated after Him and wrote the text. From this point forward, with respect to Moses’ death, the Holy One, Blessed be He, dictated and Moses wrote with tears. The fact that the Torah was written by way of dictation can be seen later, as it is stated concerning the writing of the Prophets: “And Baruch said to them: He dictated all these words to me, and I wrote them with ink in the scroll” (Jeremiah 36:18).
כְּמַאן אָזְלָא הָא דְּאָמַר רַבִּי יְהוֹשֻׁעַ בַּר אַבָּא אָמַר רַב גִּידֵּל אָמַר רַב: שְׁמוֹנָה פְּסוּקִים שֶׁבַּתּוֹרָה יָחִיד קוֹרֵא אוֹתָן? לֵימָא רַבִּי יְהוּדָה הִיא – וּדְלָא כְּרַבִּי שִׁמְעוֹן? אֲפִילּוּ תֵּימָא רַבִּי שִׁמְעוֹן, הוֹאִיל וְאִשְׁתַּנּוֹ – אִשְׁתַּנּוֹ.
The Gemara asks: In accordance with whose opinion is that which Rabbi Yehoshua bar Abba says that Rav Giddel says that Rav says: When the Torah is read publicly in the synagogue, one person reads the last eight verses in the Torah, and that section may not be divided between two readers? Shall we say that this is in accordance with the opinion of Rabbi Yehuda and not in accordance with the opinion of Rabbi Shimon, as according to Rabbi Shimon these verses are an integral part of the Torah, written by Moses just like the rest? The Gemara answers: Even if you say that this was said in accordance with the opinion of Rabbi Shimon, since they differ from the rest of the Torah in one way, as Moses wrote them with tears, they differ from the rest of the Torah in this way as well, i.e., they may not be divided between two readers.
יְהוֹשֻׁעַ כָּתַב סִפְרוֹ. וְהָכְתִיב: ״וַיָּמׇת יְהוֹשֻׁעַ בִּן נוּן עֶבֶד ה׳״! דְּאַסְּקֵיהּ אֶלְעָזָר. וְהָכְתִיב: ״וְאֶלְעָזָר בֶּן אַהֲרֹן מֵת״! דְּאַסְּקֵיהּ פִּנְחָס.
It is stated in the baraita that Joshua wrote his own book. The Gemara asks: But isn’t it written toward the end of the book: “And Joshua, son of Nun, the servant of the Lord, died” (Joshua 24:29)? Is it possible that Joshua wrote this? The Gemara answers: Aaron’s son Eleazar completed it. The Gemara asks: But isn’t it also written: “And Eleazar, son of Aaron, died” (Joshua 24:33)? The Gemara answers: Pinehas completed it.