The best course of action would be to set it as a condition so the potential wife knows what to expect before going into marriage. People place various conditions for talaq that are worldly and materialistic; if someone sets a religious condition, it should be seen as something praiseworthy.