The Supreme Court on Wednesday worked out a settlement in between a husband and wife locked in matrimonial dispute after the husband agreed that he will not torture the wife and will withdraw all cases filed against her including the divorce petition.