Right off the cuff from Matthew 1.
19 And Joseph her husband, being a righteous man and not wanting to disgrace her publicly, made up his mind to dismiss her secretly. source
Dismiss her secretly. What a word! To dismiss someone.
20 But while he considered these things, behold, an angel of Adonai appeared to him in a dream, saying, “Joseph son of David, do not be afraid to take Miriam as your wife, for the Child conceived in her is from the Ruach ha-Kodesh. 21 She will give birth to a son; and you shall call His name Yeshua, for He will save His people from their sins.” source
Do not be afraid.
He, Joseph, was afraid to NOT dismiss Mary. He had lost confidence in her but not his love for her. And even though he loved her still he was afraid to complete the marriage covenant. Why? He deemed her to be untrustworthy. He thought she had given herself to another in intimacy that even he had not experienced with her.
Joseph was a right choice.
Joseph. A righteous man; otherwise, he would not have determined to put her away secretly. He was wounded, he was hurt, he was dismayed, but he did not want her dead! He just didn’t want her to hurt him further with what he assumed was her stony heart. What else would explain her behavior?
What else indeed?!
Sometimes obeying GOD looks evil to others – but follow HIM anyway. Those who are right with GOD will come around when their souls have been enlightened and comforted.