בְּהִתְהַלֶּכְךָ֨ ׀ תַּנְחֶ֬ה אֹתָ֗ךְ בְּֽ֭שָׁכְבְּךָ תִּשְׁמֹ֣ר עָלֶ֑יךָ וַ֝הֲקִיצ֗וֹתָ הִ֣יא תְשִׂיחֶֽךָ׃
Когда ты идешь, он поведет тебя, Когда ты ляжешь, он будет присматривать за тобой; И когда ты проснешься, он будет говорить с тобой.
Midrash Tehillim
Another interpretation [of Psalms 1:3] “like a tree planted.” [There are two Hebrew words for planting; one of them,] נטוע isn’t mentioned [here] but שתול [is used instead — this word carries a nuance of greater resilience]. This is to teach you that even if all the winds in the world were to blow upon it, they wouldn’t move it from its place. “This book of Torah should not cease from your lips” (Joshua 1:8); and if you do [live up to this calling,] “then you will prosper in your undertakings [and then you will be successful]” (ibid.) — [you will prosper in your undertakings] in this world; and then you will be successful in the world to come. Solomon said, “When you walk, it shall lead you” (Proverbs 6:22) — in this world; “When you lie down it will watch over you” (ibid.) — in the grave [where it shall protect you from] the worm; “And when you awake it will talk with you” (ibid.) — in the world to come.
Midrash Tanchuma
Scripture itself declares: Happy is the man that hearkeneth unto Me, watching daily at My gates, waiting at the posts of My door (ibid. 8:34). This verse indicates that no harm will befall the person who hearkens unto the Torah, for it is written: Whosoever hearkeneth unto Me shall dwell securely and shall be quiet without fear of evil (ibid. 1:33). Furthermore it states: When thou walkest, it shall lead thee (ibid. 6:22).
Midrash Tanchuma Buber
Another interpretation (of Gen. 28:10): AND JACOB SET OUT. This text is related (to Prov. 6:22): WHEN YOU WALK, IT (your father's commandment and your mother's torah) WILL GUIDE YOU. This refers to Jacob, who had been occupied with Torah when he set out from his father's house, and he did not leave it behind. Thus it is stated (ibid., cont.): IN YOUR LYING DOWN, IT WILL WATCH OVER YOU. When? (In Gen. 28:11:) THEN HE TOOK ONE OF THE STONES OF THE PLACE, [SET IT UNDER HIS HEAD, AND LAY DOWN IN THAT PLACE]. When he lay down, it guarded him. (Prov. 6:22, cont.:) AND WHEN YOU AWAKEN, IT WILL CONVERSE WITH YOU. [(Gen. 28:16:) THEN JACOB AWAKENED FROM HIS SLEEP.]