Matthew 1:19

Ἰωσὴφ δὲ ὁ ἀνὴρ αὐτῆς, δίκαιος ὢν· καὶ μὴ θέλων αὐτὴν παραδειγματίσαι, ἐβουλήθη λάθρᾳ ἀπολῦσαι αὐτήν.

And Ioseph her husband, being a righteous man, and not willing to make her a public example, was minded to put her away secretly.