A dozen times the New Testament refers to the Old Testament as the Law and the Prophets. In Luke 24:44 Jesus said “the law of Moses, and in the prophets, and in the psalms.” Yet most of the Hebrew Old Testament, Joshua through Esther in the English arrangement, are primarily historical. They are quoted in the New Testament as Scripture. For example Paul in Romans 11:4 quotes 1 Kings 19:18.
It is easier for us to think of Judges through Esther as history. There is some poetry, a few prophecies, a few proverbs and a few random commandments. But over 90% is narrative prose, written as history. It even includes genealogical records which are pure history.
Ezra is credited by tradition with preserving the entire Old Testament. He collected, arranged, and wrote it in the form we have it today. But there were many authors, from the time of Joshua around 1450 BC to Ezra around 400 BC. Some of the known authors of this history are Joshua, or people writing for Joshua, Samuel, the sons of the prophets, set up by Samuel, royal scribes, paid for by the northern kings as well as the southern kings, Elijah, Elisha, Isaiah, Baruch, Jeremiah, and Ezekiel. It is not possible to know how much any of these men contributed, though Baruch under Jeremiah might have gathered together all of the Scriptures available at that time.
It is also known that under King Manasseh, the son of Hezekiah, every known copy of the Scriptures was destroyed and a single copy was preserved in the temple. So all existing copies from that point come from the single text found in the temple by Hilkiah the priest around 735 BC, 2 Kings 23:24.
Image Credit: Henry Ossawa Tanner Christ and His Mother Studying the Scriptures circa 1909 Dallas Museum of Art Wikimedia Commons