Al-Hasan (may Allah have mercy on him) said: If an umm walad miscarries something known to be from a pregnancy, she is set free by it and is counted as an umm walad.