 A Baraita taught that Joshua wrote the book of Joshua.Noting that says, "And Joshua son of Nun the servant of the Lord died," the Gemara (reasoning that Joshua could not have written those words and the accounts thereafter) taught that Eleazar the High Priest completed the last five verses of the book.But then the Gemara also noted that the final verse, says, "And Eleazar the son of Aaron died," and concluded that Eleazar's son Phinehas finished the book.