This story takes place in the time of the judges before a king was in place to rule over the nation. The Talmud speculates that Samuel wrote the book, but there is no author named so we can say that for certain.