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,

Read Luke 2:27 Using Other Translations

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,
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,
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,