Commentary for Berakhot 64:9
איני והא א"ר חייא בר אבא א"ר יוחנן כל המאריך בתפלתו ומעיין בה סוף בא לידי כאב לב שנא' (משלי יג, יב) תוחלת ממושכה מחלה לב מאי תקנתיה יעסוק בתורה שנא' (משלי יג, יב) ועץ חיים תאוה באה ואין עץ חיים אלא תורה שנאמר (משלי ג, יח) עץ חיים היא למחזיקים בה לא קשיא הא דמאריך ומעיין בה הא דמאריך ולא מעיין בה
But it is not so ! For R. Hiyya b. Abba has said in the name of R. Johanan : Whoever prolongs his prayer and calculates on it will eventually come to pain of heart ; as it is said, "Hope deferred maketh the heart sick" (Prov. xiii. 12). What is his remedy? Let him occupy himself with Torah; as it is said, "But desire fulfilled is a tree of life" (ibid.), and "tree of life" is nothing else than Torah, as it is said, "It is a tree of life to them that lay hold upon it" (Prov. iii. 18)! There is no contradiction; the latter teaching refers to one who prolongs his prayer and calculates on it, the former to one who prolongs his prayer without calculating on it.
Tosafot on Berakhot
Tosfos will now show us that there seems to be a contradiction between two Gemaros about whether עיון תפלה is a valuable component in praying or is it perhaps a negative component as it seems from our Gemara. This is bewildering, for here it appears that concentration while praying is not a constructive component of prayer and so too, it appears in perek HoRo’eh (later 55a) where the Gemara says: Three things cause one sins to be remembered, and the Gemara there says that concentration while praying is one of them. Obviously, that is negative. And in perek M’fanin (Shabos 127a) it does not seem that way. For the Gemara says there that there are six things for which a person benefits from their dividends in this world and among them the Gemara lists concentration while praying. We see that it is a positive component.
Tosfos offers further proof that intent while praying is a positive component. And so too, it appears in perek Get Poshut (Bovo Basro 164b) where the Gemara says: there are three negative things from which a person is not saved each day. In other words, there are three negative things that a person engages in every day, and the Gemara says that one of them is concentration while praying. The explanation of עיון תפלה in the context of that Gemara is that one does not have proper concentration while praying. If so, it appears that concentration while praying is a positive component. This is a contradiction to our Gemara and the Gemara in perek HoRoeh.
And we can answer: that there are two opposite forms of concentration while praying. Although the Gemara uses the same term to describe them, they are opposites. There is the concentration while praying of our Gemara where the person praying is expecting that his supplication will be answered, which is a negative component of prayer, and there is the concentration while praying discussed there in perek M’fanin and in perek Get Poshut that one has proper intent while he prays, which is definitely a positive component of prayer.