Book of Nehemiah
The custom dates to the time of the Babylonian captivity (6th century BCE). The origin of the first public Torah readings is found in the Book of Nehemiah, where Ezra the scribe writes about wanting to find a way to ensure the Israelites would not go astray again. This led to the creation of a weekly system to read the portions of the Torah at synagogues.