תניא אמר רבי יוסי פעם אחת הייתי מהלך בדרך ונכנסתי לחורבה אחת מחורבות ירושלים להתפלל בא אליהו זכור לטוב ושמר לי על הפתח (והמתין לי) עד שסיימתי תפלתי לאחר שסיימתי תפלתי אמר לי שלום עליך רבי ואמרתי לו שלום עליך רבי ומורי ואמר לי בני מפני מה נכנסת לחורבה זו אמרתי לו להתפלל ואמר לי היה לך להתפלל בדרך ואמרתי לו מתירא הייתי שמא יפסיקו בי עוברי דרכים ואמר לי היה לך להתפלל תפלה קצרה
Incidental to the mention of the elevated significance of the night watches, the Gemara cites a related story: It was taught in a baraita that Rabbi Yosei said: I was once walking along the road when I entered the ruins of an old, abandoned building among the ruins of Jerusalem in order to pray. I noticed that Elijah, of blessed memory, came and guarded the entrance for me and waited at the entrance until I finished my prayer. When I finished praying and exited the ruin, Elijah said to me, deferentially as one would address a Rabbi: Greetings to you, my Rabbi. I answered him: Greetings to you, my Rabbi, my teacher. And Elijah said to me: My son, why did you enter this ruin? I said to him: In order to pray. And Elijah said to me: You should have prayed on the road. And I said to him: I was unable to pray along the road, because I was afraid that I might be interrupted by travelers and would be unable to focus. Elijah said to me: You should have recited the abbreviated prayer instituted for just such circumstances.
I responded: I heard a Heavenly voice, like an echo of that roar of the Holy One, Blessed be He (Maharsha), cooing like a dove and saying: Woe to the children, due to whose sins I destroyed My house, burned My Temple, and exiled them among the nations.
And Elijah said to me: By your life and by your head, not only did that voice cry out in that moment, but it cries out three times each and every day. Moreover, any time that God’s greatness is evoked, such as when Israel enters synagogues and study halls and answers in the kaddish prayer, May His great name be blessed, the Holy One, Blessed be He, shakes His head and says: Happy is the king who is thus praised in his house. When the Temple stood, this praise was recited there, but now: How great is the pain of the father who exiled his children, and woe to the children who were exiled from their father’s table, as their pain only adds to that of their father (Rabbi Shem Tov ibn Shaprut).