Hereupon God bade him take the five experienced scribes, Sarga, Dabria, Seleucia, Ethan, and Aziel, with him into retirement, and dictate to them for forty days. After one day spent with these writers in isolation, remote from the city and from men, a voice admonished him: "Ezra, open thy mouth, and drink whereof I give thee to drink." He opened his mouth, and a chalice was handed to him, filled to the brim with a liquid that flowed like water, but in color resembled fire.

His mouth opened to drink, and for forty days it was not closed. During all that time, the five scribes put down, "in signs they did not understand," they were the newly adopted Hebrew characters, all that Ezra dictated to them, and it made ninety-four books. At the end of the forty days' period, God spoke to Ezra thus: "The twenty-four books of the Holy Scriptures thou shalt publish, for the worthy and the unworthy alike to read; but the last seventy books thou shalt withhold from the populace, for the perusal of the wise of thy people." On account of his literary activity, he is called "the Scribe of the science of the Supreme Being unto all eternity."