Luke 2:29
“Now, O Lord, you can dismiss your servant in peace, for you have fulfilled your word
So, he was led into the temple by the Holy Spirit when the parents brought the child Jesus to do for him according to the custom of the law.
and he had been assured by the Holy Spirit that he would not die before seeing the Messiah of the Lord.
There lived in Jerusalem at that time a very upright and devout man named Simeon; the Holy Spirit was in him. He looked forward to the time when the Lord would comfort Israel;
And they offered a sacrifice as instructed in the law of the Lord: a pair of turtledoves or two young pigeons.
When the day of purification came according to the law of Moses, they took the baby to Jerusalem to present him to the Lord,
On the eighth day, the baby was circumcised; he was named Jesus, the name the angel had given him before he was conceived.
The shepherds then returned, giving glory and praise to God for everything they had heard and seen, just as the angels had told them.