Assalamu alaikum brother Osama,
The NT and even the gospel of Barnabas (ch. 2) says that Mary took Joseph as her husband.
But we know that the Jews called her an aduteress. Even the Talmud says that.
If Joseph was really Mary's husband, they wouldn't make such a nasty claim. They would simply take Jesus as the son of Joseph.
Please reply soon.
Your brother,
Tahmeed