Thank you for contacting BibleAsk.
This claim was promoted by a discovery of the fourth-century “Jesus’ wife papyrus.” In addition while a couple of the Gnostic gospels mention Jesus had a close relationship with Mary Magdalene, none of them specifically stated that Jesus was married. These books have all been proven to be forgeries invented to create a Gnostic view of Jesus.
It was common for certain religious figures to remain single in the Jewish traditions. Two famous Jewish writers from the first-century A.D., Philo and Josephus, mention that the Essenes, a group of apocalyptic Jews who eagerly awaited God’s intervention in history, did not marry by choice.
There’s also nothing whatsoever in the biblical material to suggest that Mary Magdalene was Jesus’ wife. If Jesus and Mary Magdalene had been married, then we should expect that he would have entrusted her into the care of the beloved disciple John at the cross, just as he did with his mother (John 19:27). The absence of this action is also another reason that suggests that Jesus and Mary Magdalene were not married.
Whenever the New Testament gospels refer to Jesus’ natural relatives, they speak only of his father, mother, and siblings, but never of a wife. In light of the coming of God’s kingdom, and in light of Jesus’ commitment to announce and inaugurate the kingdom, He chose to remain single so that nothing would distract Him from His primary calling and mission.