Elijah's miraculous deeds will be better understood if we remember that he had been an angel from the very first, even before the end of his earthly career. When God was about to create man, Elijah said to Him: "Master of the world! If it be pleasing in Thine eyes, I will descend to earth, and make myself serviceable to the sons of men." Then God changed his angel name, and later, under Ahab, He permitted him to abide among men on earth, that he might convert the world to the belief that "the Lord is God." His mission fulfilled, God took him again into heaven, and said to him: "Be thou the guardian spirit of My children forever, and spread the belief in Me abroad in the whole world."
Elijah and the Angels and the Chariot
Legends of the Jews 7:18