 When Jesus' parents go to the temple in Jerusalem, it really is about three different ceremonies of the Old Covenant time. The purification of a woman 40 days after childbirth, and you can read about this in Leviticus chapter 12. The presentation of the firstborn to God, and you can read about this in Exodus chapter 13, verse 2.