The gospels of Matthew and Luke say that Mary was a virgin and that Jesus was conceived by the Holy Spirit . The canonical gospels of Matthew ( Matthew 1:18 ) and Luke say that Mary was a virgin and that Jesus was conceived by the Holy Spirit .