God knew what He was doing when He chose Joseph to be the earthly father of Jesus.

 

Proverbs 4:3,4