Devarim / Deuteronomy 13:5 · Drash
אַחֲרֵי יְהוָה אֱלֹהֵיכֶם תֵּלֵכוּ וְאֹתוֹ תִירָאוּ וְאֶת־מִצְוֺתָיו תִּשְׁמֹרוּ וּבְקֹלוֹ תִשְׁמָעוּ וְאֹתוֹ תַעֲבֹדוּ וּבוֹ תִדְבָּקוּן׃
After the Eternal your Almighty you shall walk, and Him you shall fear, and His commandments you shall keep, and to His voice you shall listen, and Him you shall serve, and to Him you shall cleave.
Drash דְּרָשׁ
Walking after His ways
How can one walk after God if He cannot be seen? The sages of the Talmud answer: see what He does, and do the same.
Ein Yaakov, the words of Rabbi Chama bar Chanina: can a person walk after the Shechinah? It is said: "The Eternal your Almighty is a consuming fire". But walk after His attributes. He clothed the naked, Adam and Chava (Eve), so you clothe the naked. He visited the sick Avraham (Abraham), so you visit the sick. He buried Moshe (Moses), so you bury the dead. He comforted Yitzchak (Isaac) after his father's death, so you comfort mourners. The Torah begins with kindness and ends with kindness.
How Ein Yaakov explain it
Ein Yaakov
(Ibid.) And Rabbi Chama bar Chanina said: what is the meaning of what is written: "After the Eternal your Almighty you shall walk" (Devarim / Deuteronomy 13:5)? Can a person walk after the Shechinah? Has it not already been said: "For the Eternal your Almighty is a consuming fire, a jealous God" (Devarim / Deuteronomy 4:24)? But walk after the attributes of the Holy One, blessed is He.
Just as He clothes the naked, as it is written: "And the Eternal Almighty made for Adam and his wife garments of skin, and clothed them" (Bereshit / Genesis 3:21), so you clothe the naked. The Holy One, blessed is He, visited the sick, as it is written: "And the Eternal appeared to him by the oaks of Mamre" (Bereshit / Genesis 18:1), so you visit the sick. The Holy One, blessed is He, buried the dead, as it is written: "And He buried him in the valley" (Devarim / Deuteronomy 34:6), so you bury the dead. The Holy One, blessed is He, comforted mourners, as it is written: "And it was after the death of Avraham (Abraham), and the Almighty blessed Yitzchak (Isaac) his son" (Bereshit / Genesis 25:11), so you comfort mourners.
"And the Eternal Almighty made for Adam and his wife garments of skin, and clothed them." Rav and Shmuel: one said: what is taken from skin, and the other said: what is pleasant to the skin.
Rabbi Simlai expounded: the Torah, its beginning is acts of kindness and its end is acts of kindness. Its beginning is acts of kindness, as it is written: "And the Eternal Almighty made for Adam and his wife garments of skin, and clothed them". And its end is acts of kindness, as it is written: "And He buried him in the valley".
Takeaway
This conversation is recorded in the Talmud (Sotah 14a), and "Ein Yaakov" gathers the stories of the Talmud into one book.
The Eternal appears to Avraham at Mamre right after his circumcision (Bereshit / Genesis 17:26–18:1). Hence the sages teach that the Eternal came to visit the sick.
"And He buried him in the valley" is said of Moshe at the very end of the Torah (Devarim / Deuteronomy 34:6), and the garments for Adam and Chava come almost at the very beginning. So Rabbi Simlai says that the Torah begins and ends with kindness.
Rashi on this page explains "to Him you shall cleave" with the same words: cleave to His ways, bury the dead, visit the sick.