The authorship of the Book of Samuel, which includes 1 Samuel and 2 Samuel, has traditionally been attributed to the prophet Samuel himself, at least for the early portions of the text. However, many scholars believe that multiple authors contributed to the text, with the books being completed after Samuel’s death.
There are indications that other figures, such as the prophets Nathan and Gad, might have played a role in the compilation and editing of the narrative. This view is supported by references in 1 Chronicles 29:29, which mentions the acts of King David being recorded by Nathan and Gad.
In summary, while Samuel is often credited with the authorship, the Book of Samuel likely reflects the contributions of various authors and editors over time, capturing a significant period in Israel’s history.