Devarim / Deuteronomy 11:22 · Sod
כִּי אִם־שָׁמֹר תִּשְׁמְרוּן אֶת־כָּל־הַמִּצְוָה הַזֹּאת אֲשֶׁר אָנֹכִי מְצַוֶּה אֶתְכֶם לַעֲשֹׂתָהּ לְאַהֲבָה אֶת־יְהוָה אֱלֹהֵיכֶם לָלֶכֶת בְּכָל־דְּרָכָיו וּלְדָבְקָה־בוֹ׃
For if you diligently keep all this commandment which I command you to do, to love the Eternal your Almighty, to walk in all His ways, and to cleave to Him,
Sod סוֹד
A thought that does not leave
One can talk with people, work, travel, and all the while keep Someone in mind. The masters of the hidden teaching call this cleaving.
Ibn Ezra: to cleave to Him is "at the end", and it is a great secret. Ramban: cleaving means always remembering the Eternal and His love, so that the thought does not part from Him. You speak with people with your mouth, while your heart is before the Eternal. For people of this level the soul is bound in the bundle of life even in their lifetime, and they themselves are a dwelling for the Presence of the Creator. Sha'arei Kedusha: the main thing is to set the Eternal before one's eyes and cleave to Him in thought, without a moment's break.
How Ibn Ezra, Ramban, and Sha'arei Kedusha explain it
Ibn Ezra And to cleave to Him
At the end. And it is a great secret.
Ramban And to cleave to Him
Rabbi Avraham Ibn Ezra said: "At the end, and it is a great secret." But the secret is not the sense of this place. Perhaps Moshe (Moses) says: "to love the Eternal, to walk in all His ways", until you are worthy at the end to cleave to Him. And in Yehoshua (Joshua) it says: "And do not mention the name of their gods, nor swear by them, nor serve them, nor bow down to them, but to the Eternal your Almighty you shall cleave, as you have done to this day" (Yehoshua / Joshua 23:7–8). If so, it is one of the warnings against idolatry: that a person's thought should not turn from the Eternal to other gods, that he should not think there is any substance in idols, but know that all of it is nothing and emptiness. It is as it says further: "Him you shall serve, and to Him you shall cleave" (Devarim / Deuteronomy 13:5). The intent is to warn that a person should not serve the Eternal and someone else besides, but serve the Eternal alone, in his heart and his deeds.
And perhaps cleaving also includes that you remember the Eternal and His love always, that your thought does not part from Him, when you walk on the way, lie down and rise up. So that a person's words with people are in his mouth and on his tongue, while his heart is not with them but before the Eternal. And perhaps for people of this level the soul is bound in the bundle of life (צְרוֹר הַחַיִּים) even in their lifetime, for they themselves are a dwelling for the Presence of the Creator (שְׁכִינָה), as the author of the book "Kuzari" hinted.
And what Yehoshua said, "as you have done to this day": in the wilderness the cloud of the Eternal was over them, the manna came down from heaven, the quail came up, the well was always before them, and all their affairs were in the hands of Heaven, full of miracles. So their thoughts and deeds were always with the Eternal. And Yehoshua warns them that now too, in the land, when those wonders have left them, their thought should always be on this, to cleave to the glorious and awesome Name, and that their intent should not part from the Eternal.
Sha'arei Kedusha And to cleave to Him
And after all this let him engage with all his strength in Torah wholly for its own sake, only to give pleasure to his Maker. When he engages in Torah and commandments, let him rejoice to the utmost, as it is said: "I rejoice at Your word as one who finds great spoil" (Tehillim / Psalms 119:162), for in this way he draws abundance into all the worlds. And the main thing of all is to fear Him, blessed is He, always, every moment, so as not to sin. This is achieved by setting the Eternal before his eyes, as it is said: "I have set the Eternal before me always" (Tehillim / Psalms 16:8). And let him strive to cleave in thought to Him, without a moment's break. This is the secret of the words "and to cleave to Him" and "to Him you shall cleave".
Takeaway
"The bundle of life" (צְרוֹר הַחַיִּים) is an image from Avigail's words to David: "the soul of my lord shall be bound in the bundle of life" (Shmuel I / I Samuel 25:29).
The words "to the Eternal your Almighty you shall cleave" Yehoshua said in his last speech to the people, before his death (Yehoshua / Joshua 23:1–2, 23:8).