What is the ruling if a postpartum woman becomes pure before forty days; are acts of worship obligatory upon her, and is she permissible for her husband?
If the postpartum woman becomes definitely pure before forty days, she must perform the ritual bath and perform acts of worship as a pure woman does. What was prohibited for her also becomes permissible, so she becomes permissible for her husband after her bath. The minimum duration for postpartum bleeding is a moment (an instant), and its usual maximum is forty days. Reaching forty days is not a condition; rather, it is sufficient for the blood to stop or to see the white discharge (qassa bayda'). And Allah the Almighty knows best.
Does touching women temporarily forbidden in marriage nullify ablution?
It is prohibited to touch, or to shake hands with such women as they are considered strangers, and doing so nullifies ablution.
Should a woman who broke her fast because of delivery make up for missed fasting days before the next Ramadhaan, and what is the expiation due on her in case she delayed making up for them ?
She should make up for missed fasting days before the start of next Ramadan if possible, but if she didn`t while being able to, then she is obliged to make up for them along with feeding a needy person for each delayed day of the missed fasting days. However, if she wasn`t able to make up for the missed fasting days before the start of next Ramadan, she has to fast a day for every day that she missed, and no ransom is due on her. And Allah Knows Best.
Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.