The Secret Book of James, one of the many traditions that circulated after Jesus’ death, gives a stylized description of this process: The twelve disciples were all sitting together at one time and remembering what the savior said to each one of them, whether secretly or openly, and putting it into books (NHC I.27.15).

