Deuteronomy 6:7
5 You must love the Lord your God with your whole mind, your whole being, and all your strength. 6 These words I am commanding you today must be kept in mind, 7 and you must teach them to your children and speak of them as you sit in your house, as you walk along the road, as you lie down, and as you get up. 8 You should tie them as a reminder on your forearm and fasten them as symbols on your forehead. 9 Inscribe them on the doorframes of your houses and gates.
Proverbs 3:23
21 My child, do not let them escape from your sight; safeguard sound wisdom and discretion. 22 So they will become life for your soul and grace around your neck. 23 Then you will walk on your way with security, and you will not stumble. 24 When you lie down you will not be filled with fear; when you lie down your sleep will be pleasant. 25 Do not be afraid of sudden disaster or when destruction overtakes the wicked;
Notes and References
"... Proverbs 6:22 not only provides a key to the motifs invoked by R. Yehoshuʿa b. Levi, it also further illuminates his teaching by its close links to another text: the Shema. A brief look at the affinities between these texts will inform our reading of Yehoshuʿa b. Levi’s teaching, for these textual dynamics underlie his midrash of the “garland of grace.” The resonance between the two texts, which has engrossed both ancient and modern scholars, is also strikingly apparent even to the casual reader (particularly those many for whom the words of the Shema are familiar and ingrained). It is perhaps impossible to read the Proverbial words “When you walk, it will lead you; when you lie down, it will watch over you; when you awaken, it will talk with you” without hearing the command, “Speak [these words] when you are sitting in your home, when you are walking on the road, when you lie down and when you rise up.” Perhaps most striking is the fact that both passages mark experience by the same three acts, and in the same order: walking, lying down, and arising. It is among these coordinates that speech occurs; if Proverbs indicates stations at which personified Wisdom guides, guards and speaks, Deuteronomy (which adds the fourth action, “sitting at home”) commands speech at all of these points (The addition of a fourth point creates marked difference from the “walk / lie down” of Proverbs 3:23-24, and the list in Proverbs 6:22, to the matched pairs of Deuteronomy 6:7) ..."
Haber, Ruth Ellen Rabbis on the Road: Exposition En Route in Classical Rabbinic Texts (p. 69) University of California, Berkeley, 2014