The Spirit led Simeon to the Temple. So he was there when Mary and Joseph brought the baby Jesus to do what the Jewish law said they must do.