2 Esdras 14:40

40 which I took and drank. When I had drunk it, my mind overflowed with understanding, and wisdom increased within me as my memory became perfect.

2 Esdras 14:40 In-Context

38 On the next day I suddenly heard a voice saying, "Ezra, open your mouth and drink what I am giving you."
39 So I opened my mouth, and I was handed a cup full of a fiery-colored liquid,
40 which I took and drank. When I had drunk it, my mind overflowed with understanding, and wisdom increased within me as my memory became perfect.
41 I began to speak and went on talking without stopping.
42 God Most High also gave wisdom to the five men with me, and they took turns writing down what I said. They used an alphabet that they had not known before, and worked for forty days, writing in the daytime and eating at night.
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.