I taught my sons and daughters the same thing. All six of my children are married and religious, and all 20 of my grandchildren have been born in wedlock, and have the advantage of homes with parents who can trust each other.
See the product of good parents is good children.