Both the gospel of Matthew and the gospel of Luke note that Jesus's parents were Mary and Joseph. Both also narrate that Mary was engaged but not married to Joseph when she got pregnant. But the accounts of how they discover this startling news differ slightly.