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 6:22
19 a false witness who pours out lies, and a person who spreads discord among family members. 20 My child, guard the commands of your father and do not forsake the instruction of your mother. 21 Bind them on your heart continually; fasten them around your neck. 22 When you walk about, they will guide you; when you lie down, they will watch over you; when you wake up, they will talk to you. 23 For the commandments are like a lamp; instruction is like a light, and rebukes of discipline are like the road leading to life
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