Give him a proper warning to stop such reprehensible talks. If he doesn't stop then immediately involve family members so they can hastily interfere. If he doesn't heed then consider leaving him as the final option. Divorce should be the last option on the table especially if kids are involved.