Luke 2:27

27 Moved by the Spirit, he went into the temple courts. When the parents brought in the child Jesus to do for him what the custom of the Law required,

Luke 2:27 in Other Translations

KJV
27 And he came by the Spirit into the temple: and when the parents brought in the child Jesus, to do for him after the custom of the law,
ESV
27 And he came in the Spirit into the temple, and when the parents brought in the child Jesus, to do for him according to the custom of the Law,
NLT
27 That day the Spirit led him to the Temple. So when Mary and Joseph came to present the baby Jesus to the Lord as the law required,
MSG
27 Led by the Spirit, he entered the Temple. As the parents of the child Jesus brought him in to carry out the rituals of the Law,
CSB
27 Guided by the Spirit, he entered the temple complex. When the parents brought in the child Jesus to perform for Him what was customary under the law,

Luke 2:27 Meaning and Commentary

Luke 2:27

And he came by the Spirit into the temple
By the same Spirit of God, that revealed the above to him. The Ethiopic version renders it, "the Spirit brought him into the temple": but Simeon was not brought thither, as this version seems to suggest, in such manner as Ezekiel was brought by the Spirit to Jerusalem. Eze 8:3
or as Christ was brought by Satan to the holy city and set upon the pinnacle of the temple; but the Spirit of God, who knows and searches all things, even the deep things of God, and could testify beforehand the sufferings of Christ, and the glory that should follow, knew the exact time when Jesus would be brought into the temple; and suggested to Simeon, and moved upon him, and influenced and directed him, to go thither at that very time. The Persic version renders the whole verse thus, "when he heard that they brought Christ into the temple, that they might fulfil the law, Simeon went in"; which version spoils the glory of the text, making Simeon's coming into the temple, to be upon a report heard, and not the motion of the Holy Ghost.

And when the parents brought in the child Jesus;
when Joseph and Mary brought Christ into the temple. The Vulgate Latin, Arabic, and Ethiopic versions read, "his parents", Mary was his real parent, Joseph is called so, as he is his father in ( Luke 2:48 ) because he was supposed, and generally thought to be so, ( Luke 3:23 ) .

To do for him after the custom of the law;
as was used to be done in such a case, according to the appointment of the law: or as the Syriac version renders it, "as is commanded in the law"; namely, to present him to the Lord, and to pay the redemption money for him.

Luke 2:27 In-Context

25 Now there was a man in Jerusalem called Simeon, who was righteous and devout. He was waiting for the consolation of Israel, and the Holy Spirit was on him.
26 It had been revealed to him by the Holy Spirit that he would not die before he had seen the Lord’s Messiah.
27 Moved by the Spirit, he went into the temple courts. When the parents brought in the child Jesus to do for him what the custom of the Law required,
28 Simeon took him in his arms and praised God, saying:
29 “Sovereign Lord, as you have promised, you may now dismiss your servant in peace.

Cross References 1

Scripture quoted by permission.  Quotations designated (NIV) are from THE HOLY BIBLE: NEW INTERNATIONAL VERSION®.  NIV®.  Copyright © 1973, 1978, 1984, 2011 by Biblica.  All rights reserved worldwide.