5:24

וַיִּתְהַלֵּךְ חֲנוֹךְ אֶת־הָאֱלֹהִים וְאֵינֶנּוּ כִּי־לָקַח אֹתוֹ אֱלֹהִים׃

And Chanoch walked with the Almighty, and he was no more, for the Almighty took him.

Bereshit 5:24

וַיִּתְהַלֵּךְ חֲנוֹךְ אֶת־הָאֱלֹהִים

Bereshit / Genesis 5:24 · Pshat

Bereshit 5:24

וַיִּתְהַלֵּךְ חֲנוֹךְ אֶת־הָאֱלֹהִים וְאֵינֶנּוּ כִּי־לָקַח אֹתוֹ אֱלֹהִים׃

And Chanoch walked with the Almighty, and he was no more, for the Almighty took him.

Pshat פְּשָׁט

Before his time

Everyone in this chapter "dies", and only of Chanoch it is said "and he was no more". Rashi explains why Scripture changed the word, and his answer is unexpectedly harsh. The Netziv reads the same verse quite differently.

Rashi brings the midrash: Chanoch was righteous but light of mind, ready to turn back to evil. So the Holy One, blessed is He, hurried, removed him and put him to death before his time. That is why Scripture spoke of his death differently, "and he was no more": he was no more in the world before his years were complete. "Took him" means "before his time", as in Ezekiel, "behold, I take from you the delight of your eyes". The Netziv reads "walked" literally: once Chanoch withdrew and sank so deep into the love of the Eternal that he rose to heaven. "And he was no more": he vanished from the people of his generation, they searched for him as the sons of the prophets searched for Eliyahu (Elijah), and Scripture tells us: the Almighty truly took him.

How Rashi and Haamek Davar explain it

Rashi And Chanoch walked

He was righteous, but light of mind, to turn back to evil. Therefore the Holy One, blessed is He, hurried, removed him and put him to death before his time. That is why Scripture changed the word about his death and wrote "and he was no more" in the world, so as to complete his years (Bereshit Rabbah).

For he took him.
Before his time, as in "behold, I take from you the delight of your eyes" (Yechezkel / Ezekiel 24:16).

Haamek Davar And Chanoch walked, and so on

Once he withdrew and sank himself into the love of the Eternal until he came to rise to the firmament.

And he was no more.
He was lost and vanished from the people of his generation.

For the Almighty took him.
Since they searched for him, as the sons of the prophets said of Eliyahu (Elijah): "lest the spirit of the Eternal has carried him off and cast him on one of the mountains", and so on (Melachim II / II Kings 2:16), Scripture made known that the Almighty truly took him.

Takeaway

"And he was no more" (וְאֵינֶנּוּ) instead of "and he died" (וַיָּמָת): of everyone else in chapter 5 it is said "and he died", only of Chanoch it is not. The whole commentary stands on this change.
Chanoch lived 365 years (Bereshit / Genesis 5:23), his father Yered 962 (Bereshit / Genesis 5:20) and his son Metushelach 969 (Bereshit / Genesis 5:27). From here the midrash of a death "before his time".
"So as to complete his years": the midrash Rashi brings reads "and he was no more" as "he was no more in the world before his years were complete" (Bereshit Rabbah 25:1).
"Behold, I take from you the delight of your eyes": the Almighty warns Ezekiel of the sudden death of his wife (Yechezkel / Ezekiel 24:16). Rashi and the midrash take from here the meaning of "take" as "put to death before the time".
"Lest the spirit of the Eternal has carried him off": after Eliyahu was taken up, fifty sons of the prophets searched for him in the mountains for three days (Melachim II / II Kings 2:16–17). The Netziv sees in this the model of how Chanoch was searched for.
Rashi and the Netziv part ways: for Rashi Chanoch died, for the Netziv he rose to heaven alive. The plain translation keeps the words of the verse as they are: "and he was no more".