Of the thousands of Jewish men to choose from, God chose Joseph to be the father (foster father) of the Messiah. Why? There are things about Joseph that characterize the kind of person that pleases God and therefore the kind of person God can use.
Matthew advises us that one of Joseph’s strengths was personal righteousness: “…Joseph her husband was a righteous man…” (Matthew 1:19)
Being a “righteous man” (“just” in KJV) refers not only to his relationship with God; it also speaks of his concern that he handle the “out of wedlock” pregnancy of Mary in the right way. Being a “righteous man” means Joseph was a good man, a fair, honest, upright man. He really wanted to do the right thing — and that pleases God! Joseph was deeply concerned about doing the right thing, and was eventually given the answer.
God doesn’t expect us to know what’s right in every situation we face. What pleases Him though is when we want to do right. I believe there are many of us who truly want to give the Lord our best; the cry of our heart is to be led in His glorious will day in and day out. If you are a “just” man or woman you will be led of God — it’s only a matter of time.