The deepest model for nostalgic memory in prayer is the psalmist's own voice: Tehillim 42:5 describes a soul that pours itself out precisely by remembering the joyous throngs it once walked with to the House of God — the recollection itself becomes an act of yearning, not a retreat from avodah.
Yet the halachic authorities are unanimous that prayer's inner requirement is a present-tense orientation: Sanhedrin 22a states that one who prays must see himself as if the Shekhinah stands before him, and Mishneh Torah, Prayer and the Priestly Blessing 4:16 defines proper kavanah as clearing the heart of all extraneous thoughts and standing as if before the Divine Presence — while Shulchan Arukh, Orach Chayim 98:1 adds that any intrusive thought that arises should be silenced until it dissolves, so that thought and intention remain pure.
The tension is sharpened by Rav Kook (Ein Aya, Berakhot 4:47), who rules that even genuine inner stirring and feeling — however real — cannot by itself constitute the foundation of prayer, because prayer must be service of God; feeling is a valid instrument for bringing the mind to the right posture, but the goal stands higher than any personal emotion, and one must recognize how small the heart's sentiments are relative to the supreme purpose of fulfilling God's will.
At the same time, Rav Kook (Ein Aya, Berakhot 5:17) distinguishes a particular kavanah — attention to the meaning of words — from a comprehensive kavanah of the heart directed toward the greatness of God and the elevation of the soul that the hour of prayer makes possible, suggesting that personal resonance has a legitimate place when it serves that larger orientation.
Rav Kook (Ein Aya, Berakhot 9:254) extends this further: a person should listen to his internal inclinations, which were placed in him by the Creator to guide him, and at different times the soul tends toward different modes — sometimes analytic study, sometimes poetry, attachment, and holy feeling — and one should honor the moment of each natural tendency.
The Hasidic sources channel this tension toward a constructive resolution: Tanya, Part V; Kuntres Acharon 8:4 describes the Psukei d'Zimra and the blessings before Shema as designed precisely to awaken the hidden love latent in every Jewish heart and bring it to conscious revelation, and Tanya, Part I; Likkutei Amarim 44 teaches that habituating the tongue and voice to arouse the heart's intention — even when it feels at first like an illusion — taps the intrinsic hidden love that is already there, and with practice habit becomes nature.
Likutei Moharan 282 offers a crucial pastoral corrective: even when a person examines himself and finds what appears to be only flaw in his past religious moments, he must nonetheless search for the fragment of good in them and not fall into despondency — for the Evil One exploits self-criticism to produce sadness, and one is forbidden to be toppled by it.
The constructive frame is that memory of earlier davening belongs to avodah when it serves present longing rather than self-congratulation: Sha'arei Teshuvah 1:24 identifies the highest degree of humility as magnifying God's service while considering all one has done as negligible against what one still owes, and Mesillat Yesharim 17:4 counsels that purifying intention in acts of service requires habitual reflection on what one is about to do and before Whom — so that external motives fall away and true kavanah takes root.
Nefesh HaChayim, Gate II 13 offers a practical remedy that sidesteps the problem: focusing during prayer on each word's letters as they actually appear is a tried and tested means of dispelling all the distracting thoughts — including, by implication, wandering memories — that impede pure intention.
The broadest framing comes from רש"ר הירש, במעגלי שנה חלק ב עמוד קו, which describes prayer as a kind of proclamation that awakens a person's thoughts and feelings and serves as an ongoing reminder to orient all of life toward the service of God — so that the details embedded in lived experience, which many dismiss, are precisely the bearers of the deepest meaning; on this reading, the textures of one's childhood davening are not inherently alien to avodah but carry weight only insofar as they keep pointing the person forward toward the Creator.