Devarim13:5

אַחֲרֵי יְהוָה אֱלֹהֵיכֶם תֵּלֵכוּ וְאֹתוֹ תִירָאוּ וְאֶת־מִצְוֺתָיו תִּשְׁמֹרוּ וּבְקֹלוֹ תִשְׁמָעוּ וְאֹתוֹ תַעֲבֹדוּ וּבוֹ תִדְבָּקוּן׃

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.

Devarim 13:5

אַחֲרֵי יְהוָה אֱלֹהֵיכֶם

Devarim / Deuteronomy 13:5

אַחֲרֵי יְהוָה אֱלֹהֵיכֶם תֵּלֵכוּ וְאֹתוֹ תִירָאוּ וְאֶת־מִצְוֺתָיו תִּשְׁמֹרוּ וּבְקֹלוֹ תִשְׁמָעוּ וְאֹתוֹ תַעֲבֹדוּ וּבוֹ תִדְבָּקוּן׃

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.

Pshat פְּשָׁט

Whose counsel

Ramban: "after the Eternal you shall walk" is a commandment: to follow His counsel and seek from Him alone everything hidden and ask about the future, as Rivka (Rebecca) went "to inquire of the Eternal". Rashi explains each word: the commandments are the Torah of Moshe (Moses), the voice is the voice of the prophets, the service is in His Temple. And "to Him you shall cleave" means: cleave to His ways, do kindness, bury the dead, visit the sick, as the Holy One, blessed is He, did.

How Ramban and Rashi explain it

Remez רֶמֶז

Six orders

Or HaChaim: the six verbs of the verse are the six orders of the Mishnah. "Walk" is Zeraim, the laws of crops and food: eat and drink to keep the body healthy for service. "Fear Him (אֹתוֹ)" is Moed: Shabbat is called a sign (אוֹת). "Keep" is Nashim, with many laws to be kept. "Listen" is Nezikin: listen to what the judges decide. "Serve" is Kodashim, the service in the Temple. "Cleave" is Taharot: purity makes one worthy to cleave. Rabbeinu Bahya: "commandments" are the Written Torah with its six hundred and thirteen commandments.

How Or HaChaim and Rabbeinu Bahya explain it

Drash דְּרָשׁ

Walking after His ways

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

Sod סוֹד

Inside the attributes

Ba'al Shem Tov: the sages said "cleave in His attributes" (בְּמִדּוֹתָיו), not "to His attributes" (לְמִדּוֹתָיו). The main service is to cleave to the inner, to the life of the attributes, not to their outside. Outside, the attributes are separate: where there is kindness (חֶסֶד), there is no strictness (גְּבוּרָה). But inside all is one, for the life of each attribute is the Infinite, and kindness contains strictness and strictness contains kindness.

How Ba'al Shem Tov explain it