the site I looked at with the quotes gave some variations, one of which was .......

By all means marry. If you get a good wife, you'll be happy. If you get a bad one, you'll become a philosopher and that is a good thing for any man.
Socrates