Vayikra26:12

וְהִתְהַלַּכְתִּי בְּתוֹכְכֶם וְהָיִיתִי לָכֶם לֵאלֹהִים וְאַתֶּם תִּהְיוּ־לִי לְעָם׃

And I will walk among you, and I will be your Almighty, and you will be My people.

Vayikra 26:12

וְהִתְהַלַּכְתִּי בְּתוֹכְכֶם וְהָיִיתִי

Vayikra / Leviticus 26:12 · Drash

Vayikra 26:12

וְהִתְהַלַּכְתִּי בְּתוֹכְכֶם וְהָיִיתִי לָכֶם לֵאלֹהִים וְאַתֶּם תִּהְיוּ־לִי לְעָם׃

And I will walk among you, and I will be your Almighty, and you will be My people.

Drash דְּרָשׁ

One gate, different places

At the entrance everyone stands together: the guest of honour and the one led under guard. When does it become clear who is who?

Aggadat Bereshit: in this world the righteous and the wicked share one fate, all enter by one gate, like the king's retinue and the prison warden. But in the future they will be separated: the righteous will be in Gan Eden (the Garden of Eden), and the Holy One, blessed is He, will as it were stroll with them, as it says: "And I will walk among you." The wicked will be in Gehinnom (גֵּיהִנֹּם).

How Aggadat Bereshit explain it

Aggadat Bereshit And I will walk among you

Another explanation of the verse "And you will again see" (Malachi 3:18). Of this Scripture says: "All things come alike to all: one fate for the righteous and the wicked" (Kohelet / Ecclesiastes 9:2). But in the future He will separate the one from the other.

A parable of a king who entered a city, and dukes and governors entered with him, all entered with him, and after him entered the prison warden. Though all entered by one gate, once they had entered they were separated. How? The king in his palace, the dukes in their halls, the army officers in their houses, and the prison warden in the prison. So is this world: all enter by one gate, the righteous and the wicked together: "one fate for the righteous and the wicked."

But in the future the righteous will be in Gan Eden (the Garden of Eden), as it says: "This is the gate of the Eternal, the righteous will enter it" (Tehillim / Psalms 118:20). And so David says: "I will walk before the Eternal in the lands of the living" (Tehillim / Psalms 116:9): this is Gan Eden. As it were, the Holy One, blessed is He, strolls with you, as it says: "And I will walk among you" (Vayikra / Leviticus 26:12). But the wicked will be given over to Gehinnom, as it says: "All darkness is stored up for his treasures, a fire not blown will consume him" (Iyov / Job 20:26). At that hour "you will again see the difference between the righteous and the wicked" (Malachi 3:18).

Takeaway

Gehinnom (גֵּיהִנֹּם) is named after the valley of Hinnom by Jerusalem. The sages use the name for the place where the wicked are punished, and by the Mishnah it lasts twelve months (Mishnah Eduyot 2:10).
The word "walk" ties three verses together: David's "I will walk before the Eternal," the Torah's "I will walk among you" and the stroll in Gan Eden.