"Enoch walked with God." He walked with the angels three hundred years in the garden of Eden he was with them, and he learned from them intercalations, and seasons, and constellations and much wisdom. "And he was no more, for God took him." Because he was a righteous man, the Holy One Blessed Be He took him from humanity and made him an angel and he is Metatron. There is a disagreement between Rabbi Akiva and his fellows on this matter. And the Sages say that Hanoch was sometimes a righteous man and sometimes a wicked man. The Holy One Blessed Be He said: While he is righteous, I will remove him from the world, meaning I will make him truthful, as it is stated, "Behold, I am about to take away the delight of your eyes from you through pestilence." (Ezekiel 24:16)
Enoch the Man God Turned Into the Angel Metatron
Midrash Aggadah, Genesis 5:24