These are the two olive trees and the two lampstands standing in the presence of the Lord of the earth.
The olive tree bears oil, which is afterward placed upon the lampstand, so that it may give light to all who are in the house. (Matt. 5:15) In this passage we can understand spiritual wisdom by the oil; for each person is then an olive tree, when, resting within himself, he strives by the grace of contemplation to serve God; when he strives to fulfill that which the Lord says in the Gospel: “Let not your left hand know what your right hand is doing, so that your alms may be in secret; and y...our Father, who sees in secret, will repay you” (Matt. 6:3). He becomes a lampstand when he fulfills that which the Lord says in the Gospel: “Let your good works be seen, and glorify your Father who is in heaven” (Matt. 5:16). Therefore these two holy men are now olive trees, because, placed in some spot on earth where the divine majesty has ordered them to dwell, they serve God through the grace of contemplation; they will then become lampstands when they come to fulfill the ministry of their preaching, when they will proclaim the word of God to all, namely to the faithful and to the depraved. Of this lampstand the Lord says in the Gospel: “Neither do they light a lamp and put it under a bushel, but on a lampstand, so that it may give light to all who are in the house” (Matt. 5:15). For a lamp is set upon a lampstand when the ministry of preaching is entrusted to a holy man, who illuminates the good he preaches with the flames of good works; but a lamp is put under a bushel when the ministry of preaching is entrusted to someone depraved, who obscures the good he preaches by wicked deeds, so that it does not give light to those who are in the house, as Saint Gregory (Homily 12 on Gospels) says, because when a man’s life is despised, it follows that his preaching is also scorned. Therefore the two olive trees and the two lampstands are said to stand in the presence of the Lord; because, placed on earth, they await the time when they will fulfill the ministry of their preaching and pay the debt of death, as the following passages show plainly.
Source: Commentary on Revelation