The Dream of Saint Joseph refers to four dreams described in the Gospel of Matthew in which Joseph, the legal father of Jesus, is visited by an angel. In the first dream, he learns of Mary's miraculous pregnancy and is told not to be afraid. The second dream instructs him to flee to Egypt with Mary and Jesus. The third dream tells him it is safe to return from Egypt. The fourth dream instructs him to settle in Nazareth. In artworks depicting this event, an angel is often shown gesturing towards both heaven and Mary, representing the Holy Trinity, while Joseph kneels below them.