Joseph Smith on the Spirit and Power of Elijah
“The spirit of Elias is first, Elijah second, and Messiah last. Elias is a forerunner to prepare the way, and the spirit and power of Elijah is to come after, holding the keys of power, building the Temple to the capstone, placing the seals of the Melchizedek Priesthood upon the house of Israel, and making all things ready; then Messiah comes to His Temple, which is last of all; Elijah was to come and prepare the way and build up the kingdom before the coming of the great day of the Lord, although the spirit of Elias might begin it”
Reference:
Teachings of the Prophet Joseph Smith, pages 335, 340.