In 1500's it was sent by the Pope to Emperor Charles when he was going into battle.
Prayer to St. Joseph for Protection
This prayer was found in the fiftieth year of our Lord and Savior Jesus Christ. In 1500's it was sent by the Pope to Emperor Charles when he was going into battle. Whoever shall read this prayer or hear it or keep it about themselves shall never die a sudden death, or be drowned, nor shall poison take effect on them; neither shall they fall into the hands of the enemy, or shall be burned in any fire or shall be overpowered in battle. Say this prayer for nine mornings for anything you may desire. It has never been known to fail, so be sure you really want what you ask.- Imprimatur Most Rev. George W. Ahr, Bishop of Trenton
O St. Joseph whose protection is so great, so strong, so prompt before the Throne of God, I place in you all my interests and desires.
O St. Joseph do assist me by your powerful intercession and obtain for me from your Divine Son all spiritual blessings through Jesus Christ, Our Lord; so that having engaged here below your Heavenly power I may offer my thanksgiving and homage to the most loving of Fathers.
O St. Joseph, I never weary contemplating you and Jesus asleep in your arms. I dare not approach while He reposes near your heart. Press Him in my name and kiss His fine Head for me, and ask Him to return the kiss when I draw my dying breath. St. Joseph, Patron of departing souls, pray for us. Amen