What does Luke 2:23 mean?
This was done because God's law says, 'Every firstborn boy must be set apart as belonging to the Lord.' Luke 2:23 - Modern Text Bible
(Luke is explaining why Jesus' parents brought him to the temple: the law required that every firstborn son be dedicated to God, a tradition going back to the Exodus.)