Mary Magdalene was a supporter of Jesus after He drove demons out of her.
Luke 8:2 and also certain women who had been healed of evil spirits and infirmities; Mary called Magdalene, out of whom went seven demons, 3 and Joanna the wife of Chuza, Herod’s steward, and Susanna, and many others, who ministered to Him of their possessions.
Mark 16:9 And when Jesus had risen early the first day of the Sabbath, He appeared first to Mary Magdalene, out of whom He had cast seven demons.
The thought that she was a prostitute probably came from these verses.
John11:2 (It was that Mary which anointed the Lord with ointment, and wiped his feet with her hair, whose brother Lazarus was sick.)
John 12:3 Then took Mary a pound of ointment of spikenard, very costly, and anointed the feet of Jesus, and wiped his feet with her hair: and the house was filled with the odour of the ointment.
In that culture, a woman who uncovered her head, let down her hair, or touched a man in public would have been considered promiscuous or a prostitute, certainly scandalous behavior in those days. So no definite Scripture says she was a prostitute. I believe this caught on when one of the medieval popes (can’t remember which one) used Mary as an illustration in a lesson, showing that even the most sinful of people could become a trusted disciple of Jesus. Instead, everyone remembered the Mary was a hooker part.

Have a great Resurrection Sunday.