Most of the ancient commentators of the Bible interpreted it as meaning that Joseph was law-abiding, and as such decided to divorce Mary in keeping with Mosaic Law when he found her pregnant by another.read