Daniel received a vision about the 2,300 days related to the desolation of the sanctuary. He prayed and studied scripture about the desolation of Jerusalem for 70 years as punishment for sins. Gabriel was sent to explain the vision to Daniel, revealing that 70 weeks were cut off for God's people, during which time the Messiah would finish sin and transgression, bring in everlasting righteousness, and anoint the Most Holy. The 70 weeks were part of the longer 2,300 day period that would end with the sanctuary being cleansed.