'By' used to be the preposition. Some people feel that this is a little dismissive of the wife, and 'with' has become more popular. There is no difference in meaning, and it is irrelevant whether the two people are still married or not.

'To' is incorrect.