They brought him to the temple to present him to the Lord and to offer a sacrifice, which was commanded in the Law of Moses.