There was a canon from the time of Nehemiah, this canon is discussed in maccabees 2
Jesus himself divided the canon before Jamnia
Luke 24:44 And he said unto them, These are the words which I spake unto you, while I was yet with you, that all things must be fulfilled, which were written in the law of Moses, and in the prophets, and in the psalms, concerning me.
Luke 24:45 Then opened he their understanding, that they might understand the scriptures,