What does Matthew 1:19 mean?
Joseph, who was engaged to Mary and was a good man, didn’t want to embarrass her in public, so he decided to quietly end the engagement. Matthew 1:19 - Modern Text Bible
(Joseph is described as righteous, meaning he wants to do what’s right by both the law and by Mary. He chooses compassion over public shame.)