Behold, there was a man in Jerusalem whose name was Simeon. This man was righteous and devout, looking for the consolation of Israel, and the Holy Spirit was on him.
And the Holy Spirit was upon him ... indicates that it was directly under the influence of the Holy Spirit that Simeon was told to go into the temple, thus making this a supplementary revelation to the one already received regarding the promise that he should live to see the Messiah.