What happened to St Joseph Mary's husband?
From this absence, biblical scholars have, from the beginning of the Church, surmised that Saint Joseph was by then dead. Thus, Saint Joseph is the Patron Saint of a Happy Death, because he presumably died with Jesus and the Virgin Mary at his side.
In another early text, The History of Joseph the Carpenter, which was composed in Egypt between the 6th and 7th centuries, Christ himself tells the story of his step-father, claiming Joseph was 90 years old when he married Mary and died at 111.
Joseph was a descendant of the house of King David. After marrying Mary, he found her already pregnant and, “being a righteous man and unwilling to expose her to public disgrace” (Matthew 1:19), decided to divorce her quietly, but an angel told him that the child was the Son of God and was conceived by the Holy Spirit.
Most of the ancient commentators of the Bible interpreted it as meaning that Joseph was law-abiding, and as such decided to divorce Mary in keeping with Mosaic Law when he found her pregnant by another.
A careful look at the New Testament shows that Mary kept her vow of virginity and never had any children other than Jesus. When Jesus was found in the Temple at age twelve, the context suggests that he was the only son of Mary and Joseph.
Contents. The text is framed as an explanation by Jesus on the Mount of Olives concerning the life of Joseph, his stepfather. Agreeing with Mary's continued virginity, the text proclaims that Joseph had four sons (Judas, Justus, James, and Simon) and two daughters (Assia and Lydia) by a previous marriage.
God interrupts Joseph's honorable plans to divorce Mary, and tells him through an angel in a dream not to fear taking her as a wife and that the child is from God. Jesus will fulfill Isaiah's prophecy that Immanuel, ''God with us,'' will be born to a virgin. Joseph obeys, demonstrating his faith in God.
James Tabor deduced that "Mary the mother of James and Joses" is none other than Mary, the mother of Jesus herself. This interpretation would necessitate that Mary the mother of Jesus married a man named Clopas, after her marriage to Joseph (perhaps after his death).
Where in the Bible does it say Joseph died?
And Joseph made the sons of Israel swear an oath and said, "God will surely come to your aid, and then you must carry my bones up from this place." So Joseph died at the age of a hundred and ten.
After the Holy Spirit descended as a dove and caused Joseph's rod to blossom, he and Mary were wed according to Jewish custom.

Mary stayed three months, and most scholars hold she stayed for the birth of John. Given the prevailing cultural traditions and needs for security, it is probable that Joseph accompanied Mary to Judah then returned to Nazareth, and came again after three months to take his wife home.
Mary speaks with Joseph to tell him of her miraculous pregnancy. Mary and Joseph enter Bethlehem and begin searching for an inn. Mary and Joseph stop to rest on their journey to Bethlehem.
On the day of their return, Jesus "lingered", staying in the Temple, but Mary and Joseph thought that he was among their group when he wasn't. Mary and Joseph headed back home and after a day of travel realised Jesus was missing, so they returned to Jerusalem, finding Jesus three days later.
References
- https://www.politico.com/magazine/story/2017/11/17/sorry-roy-moore-joseph-wasnt-twice-marys-age-215838
- http://web.mit.edu/jywang/www/cef/Bible/NIV/NIV_Bible/GEN+50.html
- https://en.wikipedia.org/wiki/Finding_in_the_Temple
- https://www.linkedin.com/pulse/brothers-lord-did-mary-have-children-after-jesus-deacon-mike-chesley
- https://www.britannica.com/biography/Saint-Joseph
- https://www.bibleref.com/Matthew/1/Matthew-1-19.html
- https://en.wikipedia.org/wiki/Mary_of_Clopas
- https://www.churchofjesuschrist.org/media/image/nativity-mary-joseph-a466e3b?lang=eng
- https://en.wikipedia.org/wiki/Marriage_of_the_Virgin
- https://en.wikipedia.org/wiki/Visitation_(Christianity)
- https://en.wikipedia.org/wiki/History_of_Joseph_the_Carpenter
- https://en.wikipedia.org/wiki/Matthew_1:19
- https://mycatholic.life/saints/saints-of-the-liturgical-year/march-19-saint-joseph-husband-of-the-blessed-virgin-mary/