Francisco Suarez, Jean Gerson, and Saint Alphonsus Ligouri each teach that Saint Joseph was sanctified and regenerated in his mother's womb prior to birth. As you know, our Blessed Mother was sanctified at the very moment of her conception in the womb of Saint Anne - this is the dogma of the Immaculate Conception. In the case of Joseph, this sanctification occurred after his conception and before his birth.
Sacred Scripture teaches us that the Prophet Jeremiah and Saint John the Baptist received this honor of sanctification in the womb. The eminent theologians above, notably Saint Alphonsus - a doctor of the Hoy Church, extend this privilege to Saint Joseph. They even teach that Saint Joseph was confirmed in the grace, which means that he was so filled with grace that he never committed a mortal sin or a deliberate venial sin.
The great doctor of the Holy Church Saint Bernard taught: "Power is given to some of the saints to help in particular necessities; but to St. Joseph power is given to help in all necessities."
Saint Joseph, pray for us.