When the angels went away from them into heaven, the shepherds said to one another, “Let us go over to Bethlehem and see this thing that has happened, which the Lord has made known to us.” And they went with haste and found Mary and Joseph, and the baby lying in a manger. And when they saw it, they made known the saying that had been told them concerning this child. And all who heard it wondered at what the shepherds told them. But Mary treasured up all these things, pondering them in her heart. And the shepherds returned, glorifying and praising God for all they had heard and seen, as it had been told them. Luke 2:15-20.
The shepherds, upon hearing the announcement of Jesus’ birth, go to visit the baby in the manger. They tell Mary and Joseph what the angels have said. This event served as a sign for Jesus’ parents and all who heard it. Mary in particular wondered at the events, treasuring these things and pondering them in her heart.
The result is the glorying and praising of God by the shepherds. Even in his infancy, Jesus was directing human beings to give their praise and glory to God on high.