Hammad (may Allah have mercy on him) said that it is recommended to give a pregnant woman one divorce, then leave her until she gives birth.