I once spoke with the Vilna Gaon about tefillah and told me the following:
“I was once shown from Heaven just how awesome tefillah truly is. For twelve weeks toiled intensely to understand a passage in the holy Zohar regarding Rosh Chodesh but clarity on it eluded me. Then, one Rosh Chodesh, while davening the Amidah, seven different ways to explain the passage of Zohar entered my mind in one moment. ‘What should I do?’ I asked myself; perhaps I could pause for a moment just to organize my thoughts. Would this be considered a hefsek–a forbidden halachic disruption of prayer?’ That is actually what I did. I spent about a quarter of a minute (15 seconds) and I organized my thoughts and immediately went back to my davening. I completed my prayers and I thought back to recall my thoughts and review them. They were gone; they had vanished completely. I was greatly troubled by this and I spent a half hour trying to come overcome the anguish I felt so that I could properly recite Hallel.
When I stood up to prepare to daven Mussaf, the same seven explanations came back to me again. This time, I did not interrupt my prayers and paid no attention to the thoughts. When I finished davening, there they were, organized completely in my memory—all seven explanations sweeter than honey!”
On this, Rav Chaim Volozhiner remarked, “See how great and lofty were the Gaon’s pure thoughts during prayer—that for him, even Torah ideas were considered as ‘foreign thoughts’ during davening.”